fix gpg import
All checks were successful
the build was successful

This commit is contained in:
Paolo Asperti 2018-09-28 15:04:33 +02:00
parent cb0f60b289
commit fbb1f10f08

3
run.sh
View File

@ -31,7 +31,8 @@ echo "${PLUGIN_PASSPHRASE}" | /usr/libexec/gpg-preset-passphrase --preset ${GRIP
# import the key
gpg2 --batch --yes --import /key.asc
rpm --import /key.asc
gpg2 --armor --export ${ID} >/key.pub.asc
rpm --import /key.pub.asc
# get key CN
NAME=$(gpg2 --with-colons /key.asc 2>/dev/null | grep "^uid" | head -n 1 | cut -d\: -f 10)