mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
install-gosu-binary: Run gpgconf --kill only if option is available
This commit is contained in:
parent
4793ea7c06
commit
2b892204e2
@ -35,10 +35,10 @@ gpg --verify /usr/local/bin/gosu.asc
|
|||||||
|
|
||||||
# cleanup -- need to kill agent so that there is no race condition for
|
# 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
|
# 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
|
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
|
gpgconf --kill gpg-agent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc
|
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc
|
||||||
|
Loading…
Reference in New Issue
Block a user