diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-08-06 21:06:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-08-06 21:06:50 -0300 |
commit | 7da315d06d515a7d666f7b36bd6ed37f377f75c3 (patch) | |
tree | e774f910d7c7acb662f35ed8f3a27bb816e562be | |
parent | cccafbca59c9076ad82c1a01187e4aa054ddd71e (diff) | |
download | borger-7da315d06d515a7d666f7b36bd6ed37f377f75c3.tar.gz borger-7da315d06d515a7d666f7b36bd6ed37f377f75c3.tar.bz2 |
Set a special lockfile for continuous mode
-rwxr-xr-x | borger | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |