gpgvnoexpkeysig: check if gpgv exists and print error otherwise
This commit is contained in:
parent
b78afd9e92
commit
59e5870e7b
1 changed files with 5 additions and 0 deletions
|
@ -47,5 +47,10 @@ case $GPGSTATUSFD in
|
|||
;;
|
||||
esac
|
||||
|
||||
if ! command -v gpgv >&2; then
|
||||
eval 'echo "[GNUPG:] ERROR gpgv executable not found" >&'"$GPGSTATUSFD"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# we need eval because we cannot redirect a variable fd
|
||||
eval 'exec gpgv "$@" '"$GPGSTATUSFD"'>&1 | sed "s/^\[GNUPG:\] EXPKEYSIG /[GNUPG:] GOODSIG /" >&'"$GPGSTATUSFD"
|
||||
|
|
Loading…
Reference in a new issue