diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-24 11:31:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-24 11:31:33 -0300 |
commit | 3786bb0fe049ce8866141cce3852154d2cbc6536 (patch) | |
tree | 8ec4161d09555f4708b987fb93d1952089aa4e15 | |
parent | 80aa850247b40c605de1342cd4331b0f4bff9f65 (diff) | |
download | borger-3786bb0fe049ce8866141cce3852154d2cbc6536.tar.gz borger-3786bb0fe049ce8866141cce3852154d2cbc6536.tar.bz2 |
Convert the pass command to passphrase on continuous mode
-rwxr-xr-x | borger | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |