Skip to content

Commit

Permalink
ECC-1620: Check value of ECCODES_GRIB_SHOW_HOUR_STEPUNIT
Browse files Browse the repository at this point in the history
  • Loading branch information
joobog committed Dec 1, 2023
1 parent d279db8 commit 511270e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/grib_ecc-1620.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ grib_check_key_equals()
fi
}

[ -v ECCODES_GRIB_SHOW_HOUR_STEPUNIT ] && HOUR="h" || HOUR=""
HOUR=""
if [ -v ECCODES_GRIB_SHOW_HOUR_STEPUNIT ]; then
if [ $ECCODES_GRIB_SHOW_HOUR_STEPUNIT -gt 0 ]; then
export HOUR="h"
fi
fi

label="grib_ecc-1620"
temp=temp.$label
Expand Down

0 comments on commit 511270e

Please sign in to comment.