mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-25 02:12:14 +00:00
Reactivate word splitting for passphrase
The passphrase variable relies on word splitting to provide parameter key and value for gpg
This commit is contained in:
parent
f4520558e6
commit
c089625f57
1 changed files with 2 additions and 2 deletions
|
@ -87,12 +87,12 @@ sign_release() {
|
||||||
if test -s "$GPG_PASSPHRASE"; then
|
if test -s "$GPG_PASSPHRASE"; then
|
||||||
passphrase="--passphrase-file $GPG_PASSPHRASE"
|
passphrase="--passphrase-file $GPG_PASSPHRASE"
|
||||||
fi
|
fi
|
||||||
gpg --import --no-tty --pinentry-mode loopback "$passphrase" "$GPG_PRIVATE_KEY"
|
gpg --import --no-tty --pinentry-mode loopback $passphrase "$GPG_PRIVATE_KEY"
|
||||||
for asset in "$RELEASE_DIR"/* ; do
|
for asset in "$RELEASE_DIR"/* ; do
|
||||||
if [[ $asset =~ .sha256$ ]] ; then
|
if [[ $asset =~ .sha256$ ]] ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
gpg --armor --detach-sign --no-tty --pinentry-mode loopback "$passphrase" < "$asset" > "$asset".asc
|
gpg --armor --detach-sign --no-tty --pinentry-mode loopback $passphrase < "$asset" > "$asset".asc
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue