diff options
Diffstat (limited to 'tools/gpg-authcode-sign.sh')
| -rwxr-xr-x | tools/gpg-authcode-sign.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-authcode-sign.sh b/tools/gpg-authcode-sign.sh index 91e33bcec..ad4d1450c 100755 --- a/tools/gpg-authcode-sign.sh +++ b/tools/gpg-authcode-sign.sh @@ -101,7 +101,7 @@ dryrun= stamp= buildtype= # Set defaults according to our build system. -if [ -n "$abs_top_srcdir" -a -f "$abs_top_srcdir/packages/BUILDTYPE" ]; then +if [ -n "$abs_top_srcdir" ] && [ -f "$abs_top_srcdir/packages/BUILDTYPE" ]; then buildtype=$(cat "$abs_top_srcdir/packages/BUILDTYPE") elif [ -f "../packages/BUILDTYPE" ]; then buildtype=$(cat "../packages/BUILDTYPE") @@ -190,7 +190,7 @@ fi # Define the cleanup routine for osslsigncode cleanup() { - if [ -n "$outname" -a -f "${outname}.tmp" ]; then + if [ -n "$outname" ] && [ -f "${outname}.tmp" ]; then echo >&2 "Cleaning up: Removing ${outname}.tmp" rm -f "${outname}.tmp" fi |
