commit: d4ae674f7a280c1f04ede58320c5c30ba31024c6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 18:29:34 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 18:29:34 2022 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d4ae674f
keyrings-export.bash: avoid ln -f (fix mismatched check)
Signed-off-by: Sam James <sam <AT> gentoo.org>
keyrings-export.bash | 4 ++--
1 file 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")