fix empty gpg passphrase file

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-11-21 11:29:37 -05:00
parent 8fd044737f
commit 7e30abe47f
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -128,15 +128,15 @@ maybe_use_release_note_assistant() {
sign_release() { sign_release() {
if [ -s "$GPG_PASSPHRASE" ]; then if [ -s "$GPG_PASSPHRASE" ]; then
_sign_release_passphrase="--passphrase-file $GPG_PASSPHRASE" set -- "$@" "--passphrase-file $GPG_PASSPHRASE"
fi fi
gpg --import --no-tty --pinentry-mode loopback "$_sign_release_passphrase" "$GPG_PRIVATE_KEY" gpg --import --no-tty --pinentry-mode loopback "$@" "$GPG_PRIVATE_KEY"
for asset in "$RELEASE_DIR"/*; do for asset in "$RELEASE_DIR"/*; do
case "$asset" in case "$asset" in
*.sha256) continue ;; *.sha256) continue ;;
esac esac
gpg --armor --detach-sign --no-tty --pinentry-mode loopback "$_sign_release_passphrase" <"$asset" >"$asset".asc gpg --armor --detach-sign --no-tty --pinentry-mode loopback "$@" <"$asset" >"$asset".asc
done done
} }