From 8918a2b398dd602e9e4626e12d34a05d516f8e70 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Wed, 10 Nov 2021 16:56:31 -0700 Subject: [PATCH] go back to where we started please --- sync/minor-release-sync-to-staging.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sync/minor-release-sync-to-staging.sh b/sync/minor-release-sync-to-staging.sh index ea7f844..410125d 100644 --- a/sync/minor-release-sync-to-staging.sh +++ b/sync/minor-release-sync-to-staging.sh @@ -20,8 +20,12 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do # shellcheck disable=SC2035 sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \ {} "${TARGET}" + + # Return back to where we started + cd "$(dirname "$0")" || { echo "${COMPOSE}: Failed to change back"; break; } done + # sync all sig stuff # Disabled as we will have a different method for sig content and sig content # is available upstream.