Skip to content

Commit

Permalink
Add status check and exit to exgdas_enkf_earc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Nov 15, 2023
1 parent 14f4623 commit 5744107
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/exgdas_enkf_earc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ if [ "${ENSGRP}" -eq 0 ]; then
tar_fl=${ATARDIR}/${PDY}${cyc}/${RUN}.tar
${TARCMD} -P -cvf "${tar_fl}" $(cat "${DATA}/${RUN}.txt")
status=$?
if [ "${status}" -ne 0 ]; then
echo "FATAL ERROR: Tarring of ${tar_fl} failed"
exit "${status}"
fi

# If rstprod was found, change the group of the tarball
if [[ "${has_rstprod}" == "YES" ]]; then
Expand Down

0 comments on commit 5744107

Please sign in to comment.