From deb1e850a2fb83b0eff6d0761ea4a4aafb406112 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 31 Dec 2015 22:23:56 +0100 Subject: [PATCH] Only have an underscore in stagefile if args is non-empty --- config/debian/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/debian/common b/config/debian/common index b8a6e6cc..bc3248c7 100644 --- a/config/debian/common +++ b/config/debian/common @@ -288,7 +288,7 @@ function stage() { ARGS=${ARGS:-""} log "########## ${PROGRAM} BEGIN: ${FUNC} ${ARGS} ##########" - local STAGEFILE="${stagedir}/${FUNC}_${ARGS}" + local STAGEFILE="${stagedir}/${FUNC}${ARGS:+_}${ARGS}" STAGEFILE=${STAGEFILE// /_} if [ -f "${STAGEFILE}" ]; then local stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}") -- 2.39.2