diff --git a/ush/forecast_det.sh b/ush/forecast_det.sh index 198df6505f..a1c153776b 100755 --- a/ush/forecast_det.sh +++ b/ush/forecast_det.sh @@ -45,7 +45,8 @@ FV3_det(){ RERUN=${RERUN:-"NO"} # Get a list of all YYYYMMDD.HH0000.coupler.res files from the atmos restart directory - mapfile -t file_array < <(find "${COM_ATMOS_RESTART:-/dev/null}" -name "????????.??0000.coupler.res") + # shellcheck disable=SC2312 + mapfile -t file_array < <(find "${COM_ATMOS_RESTART:-/dev/null}" -name "????????.??0000.coupler.res" | sort) if [[ ( "${RUN}" = "gfs" || "${RUN}" = "gefs" ) \ && "${#file_array[@]}" -gt 0 ]]; then