mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-11-28 02:01:58 +02:00
fix empty gpg passphrase file
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
8fd044737f
commit
7e30abe47f
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue