ECC-1620: Check value of ECCODES_GRIB_SHOW_HOUR_STEPUNIT

This commit is contained in:
Eugen Betke 2023-12-01 13:12:04 +00:00
parent d279db8091
commit 511270e75c
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ grib_check_key_equals()
fi 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" label="grib_ecc-1620"
temp=temp.$label temp=temp.$label