From: Silvio Rhatto Date: Wed, 7 Aug 2019 00:06:50 +0000 (-0300) Subject: Set a special lockfile for continuous mode X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7da315d06d515a7d666f7b36bd6ed37f377f75c3;p=borger.git Set a special lockfile for continuous mode --- 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