From 7da315d06d515a7d666f7b36bd6ed37f377f75c3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 6 Aug 2019 21:06:50 -0300 Subject: Set a special lockfile for continuous mode --- borger | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/borger b/borger index 82abc7f..bd7180d 100755 --- a/borger +++ b/borger @@ -95,7 +95,11 @@ function borger_config { fi # Lockfile location - LOCKFILE="$TMP/$BASENAME/$DESTINATION.lock" + if [ "$OPTION" == "--continuous" ]; then + LOCKFILE="$TMP/$BASENAME/$DESTINATION-continuous.lock" + else + LOCKFILE="$TMP/$BASENAME/$DESTINATION.lock" + fi } # List @@ -283,6 +287,8 @@ elif [ "$OPTION" == "--info" ]; then elif [ "$OPTION" == "--continuous" ]; then borger_check_multiple borger_config + borger_check_lockfile + borger_set_lockfile # Convert the pass command to passphrase otherwise # the user would be interrupted by a passphrase prompt -- cgit v1.2.3