X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fgeneral_updater.sh;h=d03307fc018dbce033e4c51d057f4437cd44e39e;hb=12c7752f13fe489f6d0f2d7fe484c881907b92d5;hp=83c9777514cbedb9346e834146ef7ee64548df4d;hpb=8b8777a1a68a1bb2e848a1eed1a7084f5867dc04;p=feisty_meow.git diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index 83c97775..d03307fc 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -19,12 +19,12 @@ function update_source_folders() pushd "$folder" if [ $? -ne 0 ]; then echo Changing to the folder $folder failed. - exit 1 + return 1 fi bash "$FEISTY_MEOW_SCRIPTS/rev_control/rcheckin.sh" if [ $? -ne 0 ]; then echo Checking out the latest codes has failed somehow for $folder. - exit 1 + return 1 fi popd } @@ -41,7 +41,7 @@ function synch_directory_to_target() if [ ! -d "$from" ]; then echo "skipping synch on missing source directory $from; this is not normal!" - exit 1 + return 1 fi if [ ! -d "$to" ]; then echo "skipping synch into non-existent directory $to" @@ -52,7 +52,7 @@ function synch_directory_to_target() netcp "$from"/* "$to"/ if [ $? -ne 0 ]; then echo "The synchronization of $from into $to has failed." - exit 1 + return 1 fi } @@ -71,7 +71,7 @@ function update_archive_drive() ls "$target_folder" if [ $? -ne 0 ]; then echo "The target location '$target_folder' is not mounted currently, so cannot be updated." - exit 1 + return 1 fi # synch all our targets.