export-pkgbuild-keys: add simple success export messages

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Levente Polyak 2022-06-09 20:44:47 +02:00
parent d00a28ea0e
commit 8d4c46d368
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ mapfile -t validpgpkeys < <(
printf "%s\n" "${validpgpkeys[@]}"
)
msg "Exporting ${#validpgpkeys[@]} PGP keys..."
if (( ${#validpgpkeys[@]} == 0 )); then
exit 0
fi
@ -52,6 +53,7 @@ for key in "${validpgpkeys[@]}"; do
# gpg does not give a non-zero return value if it fails to export...
if [[ -f keys/pgp/$key.asc.tmp ]]; then
msg2 "Exported $key"
mv "keys/pgp/$key.asc.tmp" "keys/pgp/$key.asc"
else
if [[ -f keys/pgp/$key.asc ]]; then