diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-06-29 22:06:42 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2023-06-29 22:06:51 -0700 |
commit | 7112f5af5a5b681d6c8d39c2ff0cf27252fc81f3 (patch) | |
tree | 218d459ffa3d2a613e80e5b0bd65384271f0c991 | |
parent | htdocs: add link to py311->py312 svg/graph (diff) | |
download | qa-scripts-7112f5af5a5b681d6c8d39c2ff0cf27252fc81f3.tar.gz qa-scripts-7112f5af5a5b681d6c8d39c2ff0cf27252fc81f3.tar.bz2 qa-scripts-7112f5af5a5b681d6c8d39c2ff0cf27252fc81f3.zip |
keyrings-export.bash: fixup export
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | keyrings-export.bash | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash index b3234e2..92c0228 100755 --- a/keyrings-export.bash +++ b/keyrings-export.bash @@ -17,35 +17,44 @@ export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONC export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") ) export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") ) export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${INFRA_SYSTEM_RULE}") ) +export -a KEYRINGS=( ) export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \ - "${SYSTEM_KEYS[@]}" + "${SYSTEM_KEYS[@]}" \ +&& KEYRINGS+=( service-keys ) export_keys "${OUTPUT_DIR}"/keys/infra-service-keys.gpg \ - "${INFRA_SYSTEM_KEYS[@]}" + "${INFRA_SYSTEM_KEYS[@]}" \ +&& KEYRINGS+=( infra-service-keys ) export_keys "${OUTPUT_DIR}"/keys/committing-devs.gpg \ - "${COMMITTING_DEVS[@]}" + "${COMMITTING_DEVS[@]}" \ +&& KEYRINGS+=( committing-devs ) export_keys "${OUTPUT_DIR}"/keys/active-devs.gpg \ "${COMMITTING_DEVS[@]}" \ - "${NONCOMMITTING_DEVS[@]}" + "${NONCOMMITTING_DEVS[@]}" \ +&& KEYRINGS+=( active-devs ) export_keys "${OUTPUT_DIR}"/keys/infra-devs.gpg \ - "${INFRA_DEVS[@]}" + "${INFRA_DEVS[@]}" \ +&& KEYRINGS+=( infra-devs ) export_keys "${OUTPUT_DIR}"/keys/retired-devs.gpg \ - "${RETIRED_DEVS[@]}" + "${RETIRED_DEVS[@]}" \ +&& KEYRINGS+=( retired-devs ) # Everybody together now export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \ "${SYSTEM_KEYS[@]}" \ + "${INFRA_SYSTEM_KEYS[@]}" \ "${COMMITTING_DEVS[@]}" \ "${NONCOMMITTING_DEVS[@]}" \ "${INFRA_DEVS[@]}" \ - "${RETIRED_DEVS[@]}" + "${RETIRED_DEVS[@]}" \ +&& KEYRINGS+=( all-devs ) -for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do +for key in "${KEYRINGS[@]}" ; do if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then # Compatibility symlink ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg |