From: Steinar H. Gunderson Date: Sat, 4 Oct 2014 22:40:18 +0000 (+0200) Subject: Delete lockfile on abort; we should try again automatically next night. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8c5d3a5b131691465f0c7fb9960e183019a5c4ce;hp=3bc98c513aa4c45391a1b57b7cf42e0ebbb7faf9;p=backup.sh Delete lockfile on abort; we should try again automatically next night. --- diff --git a/backup.sh b/backup.sh index 4489727..5c240aa 100755 --- a/backup.sh +++ b/backup.sh @@ -47,7 +47,8 @@ fi # Die more or less gracefully (at least notify user) die() { - echo `date`": Something nasty happened. Ending, and not deleting lockfile $LOCKFILE." + echo `date`": Something nasty happened." + rm $LOCKFILE exit 1 }