From: Silvio Rhatto Date: Thu, 24 May 2018 14:31:33 +0000 (-0300) Subject: Convert the pass command to passphrase on continuous mode X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3786bb0fe049ce8866141cce3852154d2cbc6536;p=borger.git Convert the pass command to passphrase on continuous mode --- diff --git a/borger b/borger index c5c9691..705c539 100755 --- a/borger +++ b/borger @@ -175,6 +175,14 @@ elif [ "$OPTION" == "--check" ]; then elif [ "$OPTION" == "--continuous" ]; then borger_config + # Convert the pass command to passphrase otherwise + # the user would be interrupted by a passphrase prompt + # at every iteration + if [ ! -z "$BORG_PASSCOMMAND" ]; then + export BORG_PASSPHRASE="`$BORG_PASSCOMMAND`" + export BORG_PASSCOMMAND="" + fi + while true; do # Run as a subprocess so we do not exit on any fatal error $FULLNAME $DESTINATION