From b8f3cb9d1a162ac2f48c7f3159793f6138d11d2d Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 8 Mar 2021 12:21:51 +0100 Subject: [PATCH] zsc-sync.sh: fix lock name --- zsc-sync.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsc-sync.sh b/zsc-sync.sh index 4db1609..0c4d5b9 100755 --- a/zsc-sync.sh +++ b/zsc-sync.sh @@ -19,8 +19,8 @@ fi ### LOCK ### -echo "Locking ZSC" -if ! lockfile-create -p -r 2 "zsc"; then +echo "Locking $0" +if ! lockfile-create -p -r 2 "$0"; then echo "Another backup is running, aborting" exit 49 fi @@ -174,5 +174,5 @@ done ### UNLOCK ### -echo "Unlocking ZSC" -lockfile-remove "zsc" +echo "Unlocking $0" +lockfile-remove "$0"