From 1e56eddb055b1414385e276ac73255d3ede9e9e9 Mon Sep 17 00:00:00 2001 From: JessicaMeixner-NOAA Date: Wed, 24 Jun 2020 12:36:53 -0500 Subject: [PATCH] fix for exiting properly with error for wave prep/init scripts --- scripts/exwave_init.sh | 3 +-- scripts/exwave_prep.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/exwave_init.sh b/scripts/exwave_init.sh index 8cb755ec18..714ed7880b 100755 --- a/scripts/exwave_init.sh +++ b/scripts/exwave_init.sh @@ -231,7 +231,6 @@ echo ' ' [[ "$LOUD" = YES ]] && set -x - msg="$job completed normally" - postmsg "$jlogfile" "$msg" + exit $err # End of MWW3 init config script ------------------------------------------- # diff --git a/scripts/exwave_prep.sh b/scripts/exwave_prep.sh index 4161943fc8..d687600b1a 100755 --- a/scripts/exwave_prep.sh +++ b/scripts/exwave_prep.sh @@ -1020,7 +1020,6 @@ echo ' ' [[ "$LOUD" = YES ]] && set -x - msg="$job completed normally" - postmsg "$jlogfile" "$msg" + exit $err # End of MWW3 preprocessor script ------------------------------------------- #