Fixup and enable GPG verification

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2022-08-24 15:50:36 -04:00
parent 4973d22c3a
commit 4bfedbc42d
No known key found for this signature in database
GPG key ID: B286E9F57A07424B
4 changed files with 18 additions and 12 deletions

View file

@ -89,9 +89,9 @@ applyPatch() {
export -f applyPatch;
gpgVerifyDirectory() {
if [ -r "$HOME/.gnupg" ]; then
if [ -r "$DOS_TMP_GNUPG/pubring.kbx" ]; then
for sig in $1/*.asc; do
if gpg --verify $sig &>/dev/null; then
if gpg --homedir "$DOS_TMP_GNUPG" --verify $sig &>/dev/null; then
echo -e "\e[0;32mGPG Verified Successfully: $sig\e[0m";
else
echo -e "\e[0;31mWARNING: GPG Verification Failed: $sig\e[0m";
@ -99,7 +99,7 @@ gpgVerifyDirectory() {
fi;
done;
else
echo -e "\e[0;33mWARNING: ~/.gnupg is unavailable, GPG verification of $1 will not be performed!\e[0m";
echo -e "\e[0;33mWARNING: keyring is unavailable, GPG verification of $1 will not be performed!\e[0m";
fi;
}
export -f gpgVerifyDirectory;