Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/export-pkgbuild-keys.in
diff options
context:
space:
mode:
Diffstat (limited to 'export-pkgbuild-keys.in')
-rw-r--r--export-pkgbuild-keys.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/export-pkgbuild-keys.in b/export-pkgbuild-keys.in
index c10e4d1..8697b3d 100644
--- a/export-pkgbuild-keys.in
+++ b/export-pkgbuild-keys.in
@@ -37,7 +37,9 @@ fi
mapfile -t validpgpkeys < <(
# shellcheck source=PKGBUILD.proto
. ./PKGBUILD
- printf "%s\n" "${validpgpkeys[@]}"
+ if (( ${#validpgpkeys[@]} )); then
+ printf "%s\n" "${validpgpkeys[@]}"
+ fi
)
msg "Exporting ${#validpgpkeys[@]} PGP keys..."