From 7c1224c91c89cf9aabfc0f4bfc1c1405515e8214 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 3 Mar 2012 22:30:43 +0100 Subject: [PATCH] make args a part of stagefile Signed-off-by: Joerg Jaspert --- config/debian/cron.dinstall | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 569dcd76..d2443f79 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -1,7 +1,7 @@ #!/bin/bash # No way I try to deal with a crippled sh just for POSIX foo. -# Copyright (C) 2009 Joerg Jaspert +# Copyright (C) 2009-2012 Joerg Jaspert # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -72,7 +72,9 @@ function stage() { error=${ERR:-"true"} - STAGEFILE="${stagedir}/${FUNC}" + ARGS=${ARGS:-""} + STAGEFILE="${stagedir}/${FUNC}_${ARGS}" + STAGEFILE=${STAGEFILE// /_} if [ -f "${STAGEFILE}" ]; then stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}") unixtime=$(date +%s) -- 2.39.2