From: Chris Koeritz Date: Sat, 12 Oct 2024 06:05:47 +0000 (-0400) Subject: popping directory in error case X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=57e4ae42224cb91fe653a2d7c6caac560a59d874;p=feisty_meow.git popping directory in error case don't want to leave a bunch of pushd history --- diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index 8e7cff95..a7721898 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -25,6 +25,7 @@ function update_source_folders() bash "$FEISTY_MEOW_SCRIPTS/rev_control/rcheckin.sh" if [ $? -ne 0 ]; then echo Checking out the latest codes has failed somehow for $folder. + popd return 1 fi popd