From c3262502274a3785fa6b005fb402bae8c9feffa5 Mon Sep 17 00:00:00 2001 From: "Judy.K.Henderson" Date: Wed, 31 Jan 2024 01:18:42 +0000 Subject: [PATCH] Correct syntax errors in GSL archive scripts --- scripts/exglobal_archive_gsl.sh | 2 ++ ush/hpssarch_gen_gsl.sh | 13 ++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/exglobal_archive_gsl.sh b/scripts/exglobal_archive_gsl.sh index 51a0731914..7787073f37 100755 --- a/scripts/exglobal_archive_gsl.sh +++ b/scripts/exglobal_archive_gsl.sh @@ -178,6 +178,8 @@ if [[ ${HPSSARCH} = "YES" || ${LOCALARCH} = "YES" ]]; then targrp_list="${targrp_list} gfs_ics" fi + fi + # Turn on extended globbing options yyyy="${PDY:0:4}" shopt -s extglob diff --git a/ush/hpssarch_gen_gsl.sh b/ush/hpssarch_gen_gsl.sh index dbcf4dbe57..a3d7d8206f 100755 --- a/ush/hpssarch_gen_gsl.sh +++ b/ush/hpssarch_gen_gsl.sh @@ -72,13 +72,12 @@ if [[ ${type} = "gfs" ]]; then while (( fh <= FHMAX_GFS )); do fhr=$(printf %03i "${fh}") - if [[ ${ARCH_GAUSSIAN} = "YES" ]]; then - { - if [[ -s ${COM_ATMOS_GRIB_0p25}/${head}pgrb2.0p25.f${fhr} ]]; then - echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}" - echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}.idx" - echo "${COM_ATMOS_HISTORY/${ROTDIR}\//}/${head}atm.logf${fhr}.txt" - fi + { + if [[ -s ${COM_ATMOS_GRIB_0p25}/${head}pgrb2.0p25.f${fhr} ]]; then + echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}" + echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}.idx" + echo "${COM_ATMOS_HISTORY/${ROTDIR}\//}/${head}atm.logf${fhr}.txt" + fi } >> "${DATA}/gfs_pgrb2.txt" #JKH {