From c50a11234423dd5a6845ba2c6d124527fe9929a2 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Thu, 11 Nov 2021 08:25:36 -0700 Subject: [PATCH] forgot popd --- sync/minor-release-sync-to-staging.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync/minor-release-sync-to-staging.sh b/sync/minor-release-sync-to-staging.sh index ec565a8..d1e25bf 100644 --- a/sync/minor-release-sync-to-staging.sh +++ b/sync/minor-release-sync-to-staging.sh @@ -59,7 +59,7 @@ for ARCH in "${ARCHES[@]}"; do # Copy the ISO and manifests into the main isos target cp "${SOURCE}"/*.iso "${TARGET}/" cp "${SOURCE}"/*.iso.manifest "${TARGET}/" - pushd "${TARGET}" || exit + pushd "${TARGET}" || { echo "Could not change directory"; break; } # shellcheck disable=SC2086 for file in *.iso; do printf "# %s: %s bytes\n%s\n" \ @@ -68,6 +68,7 @@ for ARCH in "${ARCHES[@]}"; do "$(sha256sum --tag ${file})" \ | sudo tee -a CHECKSUM; done + popd || { echo "Could not change directory"; break; } done done