mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
install-gosu-binary: Run gpgconf --kill only if option is available
This commit is contained in:
parent
4793ea7c06
commit
2b892204e2
@ -35,9 +35,9 @@ gpg --verify /usr/local/bin/gosu.asc
|
||||
|
||||
# cleanup -- need to kill agent so that there is no race condition for
|
||||
# agent files in $GNUPGHOME. Only need to do this on newer distros
|
||||
# with gpgconf installed
|
||||
# with gpgconf installed supporting the option.
|
||||
GPGCONF_BIN="$(command -v gpgconf)" || true
|
||||
if [ -n "$GPGCONF_BIN" ] && [ -x $GPGCONF_BIN ]; then
|
||||
if [ -n "$GPGCONF_BIN" ] && [ -x $GPGCONF_BIN ] && [[ $($GPGCONF_BIN --help | grep -- "--kill" || true) != "" ]]; then
|
||||
gpgconf --kill gpg-agent
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user