aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xborger8
1 files changed, 7 insertions, 1 deletions
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