From 9bc49b56ba5ddfdf99f8ed8dd38c0150128ecd68 Mon Sep 17 00:00:00 2001 From: David Huber Date: Fri, 22 Dec 2023 08:51:12 -0600 Subject: [PATCH] Address shellcheck warnings. --- jobs/rocoto/atmos_products.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/rocoto/atmos_products.sh b/jobs/rocoto/atmos_products.sh index d7d78cc1a1..7551e5ef53 100755 --- a/jobs/rocoto/atmos_products.sh +++ b/jobs/rocoto/atmos_products.sh @@ -25,8 +25,8 @@ for fhr in "${fhrs[@]}"; do # The analysis fhr is -001. Performing math on negative, leading 0 integers is tricky. # The negative needs to be in front of "10#", so do some regex magic to make it happen. fhr="10#${fhr}" - fhr=$( echo ${fhr} | sed "s/10#-/-10#/" ) - export FORECAST_HOUR=$(( ${fhr} )) + fhr=$( echo "${fhr}" | sed "s/10#-/-10#/" ) + export FORECAST_HOUR=$(( fhr )) "${HOMEgfs}/jobs/JGLOBAL_ATMOS_PRODUCTS" status=$? if (( status != 0 )); then exit "${status}"; fi