diff --git a/ush/forecast_det.sh b/ush/forecast_det.sh index a6c39e4e4c..f27bb3c260 100755 --- a/ush/forecast_det.sh +++ b/ush/forecast_det.sh @@ -40,7 +40,7 @@ FV3_GFS_det(){ #------------------------------------------------------- # determine if restart IC exists to continue from a previous forecast RERUN="NO" - filecount=$(find "${RSTDIR_ATM}" -type f | wc -l) + filecount=$(find "${RSTDIR_ATM:-/dev/null}" -type f | wc -l) if [ ${CDUMP} = "gfs" -a ${rst_invt1} -gt 0 -a ${FHMAX} -gt ${rst_invt1} -a ${filecount} -gt 10 ]; then reverse=$(echo "${restart_interval[@]} " | tac -s ' ') for xfh in ${reverse} ; do