[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 b8a6e6c..bc3248c 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.1.4


Reply to: