aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-04-21 16:42:41 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-04-21 16:42:41 -0700
commit83c1b3b6ab35eac47dce17fc814684023dd106ae (patch)
tree95b2caaf0384a5c7c699dd5274046d3d089007bc /bin
parentwkd: shrink keys (diff)
downloadwww-83c1b3b6ab35eac47dce17fc814684023dd106ae.tar.gz
www-83c1b3b6ab35eac47dce17fc814684023dd106ae.tar.bz2
www-83c1b3b6ab35eac47dce17fc814684023dd106ae.zip
bin/update-keys: include all-devs, and optimize fetch
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-keys.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/update-keys.sh b/bin/update-keys.sh
index fe419a8..b753591 100755
--- a/bin/update-keys.sh
+++ b/bin/update-keys.sh
@@ -1,7 +1,15 @@
#!/bin/bash
echo -n 'Updating keyrings...'
-cd _data &&
-wget -T 60 -q -N https://qa-reports.gentoo.org/output/active-devs.gpg &&
-wget -T 60 -q -N https://qa-reports.gentoo.org/output/service-keys.gpg
+if ! cd _data ; then
+ echo "fail."
+ exit 1
+fi
+URLS=(
+ https://qa-reports.gentoo.org/output/service-keys.gpg
+ https://qa-reports.gentoo.org/output/active-devs.gpg
+ https://qa-reports.gentoo.org/output/all-devs.gpg
+)
+# this will do URL pipeline where possible
+wget -T 60 -q -N "${URLS[@]}"
echo done.