Skip to content

Commit

Permalink
Fix default syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed Aug 10, 2024
1 parent c73eecd commit d0cd529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if [[ "${KEEPDATA}" == "NO" ]]; then
# Determine if this is the last segment
commas="${FCST_SEGMENTS//[^,]}"
n_segs=${#commas}
if (( n_segs - 1 == ${FCST_SEGMENT:0} )); then
if (( n_segs - 1 == ${FCST_SEGMENT:-0} )); then
# Only delete temporary restarts if it is the last segment
rm -rf "${DATArestart}"
fi
Expand Down

0 comments on commit d0cd529

Please sign in to comment.