From 8c5d3a5b131691465f0c7fb9960e183019a5c4ce Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 00:40:18 +0200 Subject: [PATCH] Delete lockfile on abort; we should try again automatically next night. --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.39.2