From 69946cf786388b17da97ef95e6227f78fa6c61fe Mon Sep 17 00:00:00 2001 From: Walter Kolczynski - NOAA Date: Mon, 26 Jun 2023 12:07:07 -0400 Subject: [PATCH] Fix octal bug in ocean post (#1712) Fix Ocean post treating zero-padded forecast hours as octals. Fixes #1710 Refs #1195 --- jobs/rocoto/ocnpost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/rocoto/ocnpost.sh b/jobs/rocoto/ocnpost.sh index 96d32cc26d..e674e1c4df 100755 --- a/jobs/rocoto/ocnpost.sh +++ b/jobs/rocoto/ocnpost.sh @@ -56,7 +56,7 @@ for fhr in ${fhrlst}; do # shellcheck disable= declare -x VDATE cd "${DATA}" || exit 2 - if (( fhr > 0 )); then + if (( 10#${fhr} > 0 )); then # TODO: This portion calls NCL scripts that are deprecated (see Issue #923) if [[ "${MAKE_OCN_GRIB:-YES}" == "YES" ]]; then export MOM6REGRID=${MOM6REGRID:-${HOMEgfs}}