From d96ecccb9af4ee98a116a37bafbc38ceb9de3f93 Mon Sep 17 00:00:00 2001 From: "Chan-Hoo.Jeon-NOAA" <60152248+chan-hoo@users.noreply.github.com> Date: Mon, 14 Jun 2021 15:27:58 -0400 Subject: [PATCH] Add array index to cycle_staus in launch script (#513) --- ush/launch_FV3LAM_wflow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/launch_FV3LAM_wflow.sh b/ush/launch_FV3LAM_wflow.sh index 6091e50ca7..453db87d3b 100755 --- a/ush/launch_FV3LAM_wflow.sh +++ b/ush/launch_FV3LAM_wflow.sh @@ -316,7 +316,7 @@ done <<< "${rocotostat_output}" num_cycles_total=${#cycle_str[@]} num_cycles_completed=0 for (( i=0; i<=$((num_cycles_total-1)); i++ )); do - if [ "${cycle_status}" = "Done" ]; then + if [ "${cycle_status[i]}" = "Done" ]; then num_cycles_completed=$((num_cycles_completed+1)) fi done