Skip to content

Commit

Permalink
Fix bugs for condition statements
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v13_822_add_atm_fcst
 Changes to be committed:
	modified:   ush/forecast_predet.sh

Refs: NOAA-EMC#822
  • Loading branch information
XianwuXue-NOAA committed Dec 12, 2022
1 parent 9f57a1f commit c905b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ FV3_GFS_predet(){
print_freq=${print_freq:-6}

#-------------------------------------------------------
if [ $CDUMP = "gfs" || $RUN = "gefs" ] && [ $rst_invt1 -gt 0 ] && [ $MEMBER -lt 0 ]; then
if [[ $CDUMP = "gfs" || $RUN = "gefs" ]] && [ $rst_invt1 -gt 0 ] && [ $MEMBER -lt 0 ]; then
RSTDIR_ATM=${RSTDIR_ATM:-${RSTDIR:-$ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos/RERUN_RESTART}
if [ ! -d $RSTDIR_ATM ]; then mkdir -p $RSTDIR_ATM ; fi
$NLN $RSTDIR_ATM RESTART
Expand All @@ -232,7 +232,7 @@ FV3_GFS_predet(){

#-------------------------------------------------------
# member directory
if [ $MEMBER -lt 0 || $RUN = "gefs" ]; then
if [[ $MEMBER -lt 0 || $RUN = "gefs" ]]; then
prefix=$CDUMP
rprefix=$rCDUMP
memchar=""
Expand Down

0 comments on commit c905b74

Please sign in to comment.