From 57e4ae42224cb91fe653a2d7c6caac560a59d874 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 12 Oct 2024 02:05:47 -0400 Subject: [PATCH] popping directory in error case don't want to leave a bunch of pushd history --- scripts/archival/general_updater.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.34.1