Skip to content

Commit cf9d420

Browse files
committed
make sure that we don't endlessly loop
1 parent ed4ec0a commit cf9d420

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sync/common

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,12 @@ function modifyrepo_module() {
296296
function sign_data() {
297297
local TARGET="${1}"
298298
local VER="${2}"
299-
test -f "/root/bin/sign-repo-${VER}.sh" && "/root/bin/sign-repo-${VER}.sh" \
300-
"${TARGET}"
299+
if [ -f "${TARGET}" ]; then
300+
test -f "/root/bin/sign-repo-${VER}.sh" && "/root/bin/sign-repo-${VER}.sh" \
301+
"${TARGET}"
302+
else
303+
echo "${TARGET} does not exist."
304+
fi
301305
}
302306

303307
function fix_metadata() {

sync/minor-release-sync-to-staging.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
5353
| sudo tee -a "${file}.CHECKSUM"
5454
done
5555
cat ./*.CHECKSUM > CHECKSUM
56+
# GPG sign the checksums
5657
popd || { echo "Could not change directory"; break; }
5758
done
5859
# Sort the cloud images here. Probably just a directory move, make some checksums (unless they're already there)

0 commit comments

Comments
 (0)