aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-16 19:29:34 +0100
committerSam James <sam@gentoo.org>2022-07-16 19:29:34 +0100
commitd4ae674f7a280c1f04ede58320c5c30ba31024c6 (patch)
tree566f32769b3b0bd55ac4e28a48a78c27bbc41612
parentkeyrings-export.bash: fix infra-service-keys.gpg path (diff)
downloadqa-scripts-d4ae674f7a280c1f04ede58320c5c30ba31024c6.tar.gz
qa-scripts-d4ae674f7a280c1f04ede58320c5c30ba31024c6.tar.bz2
qa-scripts-d4ae674f7a280c1f04ede58320c5c30ba31024c6.zip
keyrings-export.bash: avoid ln -f (fix mismatched check)
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xkeyrings-export.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash
index 0f36800..815c50b 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -46,9 +46,9 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
"${RETIRED_DEVS[@]}"
for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
- if [[ ! -L "${OUTPUT_DIR}"/keys/${key}.gpg ]] ; then
+ if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
# Compatibility symlink
- ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
+ ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
fi
timestamp=$(date -u +%Y%m%d -d "monday")