mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-10 21:38:50 +01:00
tools: Fix recent regressions in gpg-authcode-sign.sh
* tools/gpg-authcode-sign.sh (cleanup): Fix syntax error. (trap): Remove bashism.
This commit is contained in:
parent
6f2180e912
commit
e5e3e225fe
@ -186,14 +186,14 @@ fi
|
|||||||
# Define the cleanup routine for osslsigncode
|
# Define the cleanup routine for osslsigncode
|
||||||
cleanup()
|
cleanup()
|
||||||
{
|
{
|
||||||
if [ -n "$outname" && -f "${outname}.tmp" ]; then
|
if [ -n "$outname" -a -f "${outname}.tmp" ]; then
|
||||||
echo >&2 "Cleaning up: Removing ${outname}.tmp"
|
echo >&2 "Cleaning up: Removing ${outname}.tmp"
|
||||||
rm -f "${outname}.tmp"
|
rm -f "${outname}.tmp"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Trap common signals and exit to run the cleanup
|
# 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 \
|
for v in AUTHENTICODE_SIGNHOST AUTHENTICODE_TOOL AUTHENTICODE_TSURL \
|
||||||
AUTHENTICODE_KEY AUTHENTICODE_CERTS VERSION_SIGNKEY \
|
AUTHENTICODE_KEY AUTHENTICODE_CERTS VERSION_SIGNKEY \
|
||||||
|
Loading…
Reference in New Issue
Block a user