diff --git a/src/gpg_no_tty.sh b/src/gpg_no_tty.sh index 725d5364..63d1c85c 100644 --- a/src/gpg_no_tty.sh +++ b/src/gpg_no_tty.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash if [[ -n "${GPG_PASSPHRASE}" ]] &>/dev/null; then - # FIXME(anau) the next line is a bug - echo -e "${GPG_PASSPHRASE}" | gpg --pinentry-mode loopback --batch --yes --passphrase-fd 0 "$@" <&0 + gpg --pinentry-mode loopback --batch --yes --passphrase "${GPG_PASSPHRASE}" "$@" <&0 else gpg --pinentry-mode loopback --yes --batch "$@" <&0 fi