From: Joerg Jaspert Date: Thu, 31 Dec 2015 21:23:56 +0000 (+0100) Subject: Only have an underscore in stagefile if args is non-empty X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=deb1e850a2fb83b0eff6d0761ea4a4aafb406112;p=dak.git Only have an underscore in stagefile if args is non-empty --- 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}")