update-pentoo-keyring: kill unneeded services when done

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-06-21 10:30:12 -04:00
parent 5d24aab280
commit 30ac866a53
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -20,6 +20,8 @@ curl https://github.com/web-flow.gpg | gpg --no-default-keyring --keyring "${tmp
#trust isn't exported
printf "5\ny\n" | gpg --no-default-keyring --keyring "${tmpkeyring}" --command-fd 0 --edit-key "${github}" trust
gpg --no-default-keyring --keyring "${tmpkeyring}" --armor --export "${zero}" "${blshkv}" "${github}" > pentoo-keyring.asc
pkill -f "dirmngr --daemon --homedir ${GNUPGHOME}"
pkill -f "gpg-agent --homedir ${GNUPGHOME}"
rm -f "${tmpkeyring}"
rm -rf "${GNUPGHOME}"
unset GNUPGHOME