aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-05-03 20:33:53 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2019-05-03 20:33:53 -0700
commitc4451a64cb3c474c5ecc9609c6534924fb063003 (patch)
tree837f3afbe24ffcad6c820fc02b91fc877182f779 /keyrings.inc.bash
parentkeyrings: prepare to flip to new scripts (diff)
downloadqa-scripts-c4451a64cb3c474c5ecc9609c6534924fb063003.tar.gz
qa-scripts-c4451a64cb3c474c5ecc9609c6534924fb063003.tar.bz2
qa-scripts-c4451a64cb3c474c5ecc9609c6534924fb063003.zip
keyrings: shellcheck validation
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'keyrings.inc.bash')
-rw-r--r--keyrings.inc.bash22
1 files changed, 13 insertions, 9 deletions
diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 427a6f2..c885e8d 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -7,9 +7,13 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
RETIRED_RULE='(!(gentooStatus=active))'
-KS_GENTOO=hkps://keys.gentoo.org/
-KS_SKS=hkps://hkps.pool.sks-keyservers.net/
-KEYSERVERS=( ) # empty by default
+export KS_GENTOO=hkps://keys.gentoo.org/
+export KS_SKS=hkps://hkps.pool.sks-keyservers.net/
+export KEYSERVERS=( ) # empty by default
+export COMMITTING_DEVS=( )
+export NONCOMMITTING_DEVS=( )
+export RETIRED_DEVS=( )
+export SYSTEM_KEYS=( )
# grab_ldap_fingerprints <ldap-rule>
grab_ldap_fingerprints() {
@@ -61,12 +65,12 @@ push_keys() {
done
}
-
+export GPG_TMPDIR=''
clean_tmp() {
[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
}
setup_tmp() {
- export GPG_TMPDIR=$(mktemp -d)
+ GPG_TMPDIR=$(mktemp -d)
trap clean_tmp EXIT
}
@@ -90,8 +94,8 @@ export_keys() {
# populate common variables
export_ldap_data_to_env() {
- export COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
- export NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
- export RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
- export SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+ export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+ export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+ export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+ export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
}