index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/update-gpg-keys | 12 |
diff --git a/bin/update-gpg-keys b/bin/update-gpg-keys index 5a37e78..fe6dfe3 100755 --- a/bin/update-gpg-keys +++ b/bin/update-gpg-keys @@ -28,9 +28,6 @@ fi | gpg --import --quiet \ >/dev/null 2>&1 \ || true - gpg -a --export "${fingerprint}" \ - | curl -T - 'https://archlinux32.org/keys.php' \ - >/dev/null 2>&1 printf 'UPDATE `gpg_keys`' printf ' SET `gpg_keys`.`public_key`=from_base64("%s")' \ "$( @@ -41,3 +38,12 @@ fi "${fingerprint}" done \ | mysql_run_query + +# shellcheck disable=SC2016 +{ + printf 'SELECT `gpg_keys`.`fingerprint`' + printf ' FROM `gpg_keys`;\n' +} \ +| mysql_run_query \ +| xargs -r gpg -a --export \ +| curl -T - 'https://archlinux32.org/keys.php' |