aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-08-06 21:06:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-08-06 21:06:50 -0300
commit7da315d06d515a7d666f7b36bd6ed37f377f75c3 (patch)
treee774f910d7c7acb662f35ed8f3a27bb816e562be
parentcccafbca59c9076ad82c1a01187e4aa054ddd71e (diff)
downloadborger-7da315d06d515a7d666f7b36bd6ed37f377f75c3.tar.gz
borger-7da315d06d515a7d666f7b36bd6ed37f377f75c3.tar.bz2
Set a special lockfile for continuous 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