try pushd

This commit is contained in:
Louis Abel 2021-11-10 16:57:42 -07:00
parent 8918a2b398
commit a0187dbf64
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -11,7 +11,7 @@ MAJ=${RLVER}
# sync all pieces of a release, including extras, nfv, etc # sync all pieces of a release, including extras, nfv, etc
for COMPOSE in "${NONSIG_COMPOSE[@]}"; do for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
echo "${COMPOSE}: Syncing" echo "${COMPOSE}: Syncing"
cd "/mnt/compose/${MAJ}/latest-${COMPOSE}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; } pushd "/mnt/compose/${MAJ}/latest-${COMPOSE}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; }
TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}"
mkdir -p "${TARGET}" mkdir -p "${TARGET}"
@ -22,7 +22,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
{} "${TARGET}" {} "${TARGET}"
# Return back to where we started # Return back to where we started
cd "$(dirname "$0")" || { echo "${COMPOSE}: Failed to change back"; break; } popd "$(dirname "$0")" || { echo "${COMPOSE}: Failed to change back"; break; }
done done