diff --git a/dev/scripts/exglobal_diag.sh b/dev/scripts/exglobal_diag.sh index 68231b6fb72..dc9b56e0033 100755 --- a/dev/scripts/exglobal_diag.sh +++ b/dev/scripts/exglobal_diag.sh @@ -150,6 +150,11 @@ for loop in ${loops}; do while [[ ${n} -lt ${ntype} ]]; do n=$((n + 1)) for type in ${diagtype[n]}; do + if [[ "${type}" == *"avhrr"* ]]; then + platform="${type##avhrr[23]}" + atype="avhrr${platform}" + type="$atype" + fi #shellcheck disable=SC2012,SC2312 count=$(ls dir.*/"${type}_${loop}"* 2> /dev/null | wc -l) if [[ ${count} -eq 0 ]]; then