Adds support for GPG keyring
Currently DIB_ADD_APT_KEYS only supports GPG armor keys, while default Debuntu apt gpg keys are in keyring format. Change-Id: I361c375e25b03a08b19052b10c6733939c8df921
This commit is contained in:
parent
6758849b66
commit
48ff601098
@ -26,7 +26,7 @@ if [ ! -d "${KEY_DIRECTORY}" ]; then
|
||||
fi
|
||||
|
||||
for KEY in ${KEY_DIRECTORY}/*; do
|
||||
if ! file -b "${KEY}" | grep -q 'PGP public key block'; then
|
||||
if ! file -b "${KEY}" | grep -qE '(PGP public key block|GPG key public ring)'; then
|
||||
echo "Skipping ${KEY}, not a valid GPG public key"
|
||||
continue
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user