]> arthur.barton.de Git - backup-script.git/commitdiff
Don't remove "stamp file" in trial mode
authorAlexander Barton <alex@barton.de>
Thu, 26 Sep 2013 13:11:10 +0000 (15:11 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 26 Sep 2013 13:11:19 +0000 (15:11 +0200)
bin/backup-script

index 00c4be64d41e18a2cd0f0e158b5319a12416acfb..11208c22ccd4f6a0f593937fbec35b35ba9b4140 100755 (executable)
@@ -216,9 +216,9 @@ for f in $sys; do
        echo -n "Start date: "; date
        echo "$cmd"
        count_started=$count_started+1
-       rm -f "$sys_target/.stamp"
        
        if [ "$DRYRUN" -eq 0 ]; then
+               rm -f "$sys_target/.stamp"
                $SHELL -c "$cmd"; ret=$?
                echo "code=$ret" >"$sys_target/.stamp"
        else