From b7303012557d1a281249447d7d02ece4746e14ce Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Mon, 11 Mar 2024 20:37:28 +0100 Subject: [PATCH] fix: :bug: --- src/gpg_no_tty.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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