File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,12 @@ function modifyrepo_module() {
296296function 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
303307function fix_metadata() {
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments