summaryrefslogtreecommitdiffstats
path: root/tools/gpg-authcode-sign.sh
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-09-11 16:46:22 +0200
committerWerner Koch <wk@gnupg.org>2024-09-11 16:46:22 +0200
commite5e3e225fe98b5960286f58feb878ec404ca0963 (patch)
tree82bf778a46ec3cb5c580fbac6fc16444c93190a9 /tools/gpg-authcode-sign.sh
parentbuild: Fix make distclean for gnupg.7.html (diff)
downloadgnupg2-e5e3e225fe98b5960286f58feb878ec404ca0963.tar.xz
gnupg2-e5e3e225fe98b5960286f58feb878ec404ca0963.zip
tools: Fix recent regressions in gpg-authcode-sign.sh
* tools/gpg-authcode-sign.sh (cleanup): Fix syntax error. (trap): Remove bashism.
Diffstat (limited to '')
-rwxr-xr-xtools/gpg-authcode-sign.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-authcode-sign.sh b/tools/gpg-authcode-sign.sh
index 1bc71559f..14147c081 100755
--- a/tools/gpg-authcode-sign.sh
+++ b/tools/gpg-authcode-sign.sh
@@ -186,14 +186,14 @@ fi
# Define the cleanup routine for osslsigncode
cleanup()
{
- if [ -n "$outname" && -f "${outname}.tmp" ]; then
+ if [ -n "$outname" -a -f "${outname}.tmp" ]; then
echo >&2 "Cleaning up: Removing ${outname}.tmp"
rm -f "${outname}.tmp"
fi
}
# Trap common signals and exit to run the cleanup
-trap cleanup 0 SIGINT SIGTERM
+trap cleanup 0 INT TERM
for v in AUTHENTICODE_SIGNHOST AUTHENTICODE_TOOL AUTHENTICODE_TSURL \
AUTHENTICODE_KEY AUTHENTICODE_CERTS VERSION_SIGNKEY \