aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-11 02:00:07 +0100
committerSam James <sam@gentoo.org>2022-07-11 02:00:07 +0100
commita9d640acbf75867a786cc50971521af8d95e921a (patch)
treef114bff2ff03d52e509dc68d72842c83e6914afb
parentkeyrings-export.bash: run snapshot part weekly (diff)
downloadqa-scripts-a9d640acbf75867a786cc50971521af8d95e921a.tar.gz
qa-scripts-a9d640acbf75867a786cc50971521af8d95e921a.tar.bz2
qa-scripts-a9d640acbf75867a786cc50971521af8d95e921a.zip
keyrings-export.bash: put key snapshots in /keys/ to avoid clutter
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xkeyrings-export.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash
index eea3f20..6e4ade9 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -46,11 +46,13 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
# Don't clobber existing timestamped keys for this period (weekly)
# if we're running several times a day.
- if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then
+ if [[ -f "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg ]] ; then
continue
fi
- cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg
+ mkdir -p "${OUTPUT_DIR}"/keys
+
+ cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg
done
clean_tmp