1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-25 15:03:41 +01:00

Another typo bites the dust

This commit is contained in:
deajan 2016-09-04 22:05:01 +02:00
parent e59fcdbe15
commit 5a8d1ab811

View File

@ -1038,12 +1038,11 @@ function DecryptFiles {
exit 1 exit 1
fi fi
TODO: ugly fix : gpg 1.4.x fails with passphrase-file but not with passphrase (error is: can't query passphrase in batch mode) #TODO: ugly fix : gpg 1.4.x fails with passphrase-file but not with passphrase (error is: can't query passphrase in batch mode)
if [ "$CRYPT_TOOL" == "gpg2" ] && [ -f "$passphraseFile" ]; then if [ "$CRYPT_TOOL" == "gpg2" ] && [ -f "$passphraseFile" ]; then
secret="--passphrase-file $passphraseFile" secret="--passphrase-file $passphraseFile"
elif [ "$CRYPT_TOOL" == "gpg" ] && [ -f "$passphraseFile" ]; then elif [ "$CRYPT_TOOL" == "gpg" ] && [ -f "$passphraseFile" ]; then
secret="$$passphrase $(cat "$passphraseFile")" secret="$$passphrase $(cat "$passphraseFile")"
#if [ -f "$passphraseFile" ]; then #if [ -f "$passphraseFile" ]; then
# secret="--passphrase-file $passphraseFile" # secret="--passphrase-file $passphraseFile"
elif [ "$passphrase" != "" ]; then elif [ "$passphrase" != "" ]; then