aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-06-29 22:33:01 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-06-29 22:33:01 -0700
commitd1dda423e1285e94fade299209e58f4434db35ee (patch)
treea5477c7c6a761d5e9ea4d4807cb30235fcfb8b2f /keyrings-export.bash
parentkeyrings.inc.bash: ensure there is a checksum to verify the download for corr... (diff)
downloadqa-scripts-d1dda423e1285e94fade299209e58f4434db35ee.tar.gz
qa-scripts-d1dda423e1285e94fade299209e58f4434db35ee.tar.bz2
qa-scripts-d1dda423e1285e94fade299209e58f4434db35ee.zip
keyrings.inc.bash: ensure digests/packets present
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'keyrings-export.bash')
-rwxr-xr-xkeyrings-export.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash
index 92c0228..56e4e51 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -6,6 +6,8 @@
# - requires keeping state to detect changes in keys, there is no usable mtime data in a key itself
OUTPUT_DIR=${1:-.}
+# Ensure output is absolute
+OUTPUT_DIR=$(readlink -f "${OUTPUT_DIR}")
BASEDIR="$(dirname "$0")"
# shellcheck source=./keyrings.inc.bash
source "${BASEDIR}"/keyrings.inc.bash
@@ -57,7 +59,7 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
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
+ ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
fi
if [[ $(date -u +%A) == Monday ]] ; then