Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Refactor get_apps_with_status function to include all app names and s…
Browse files Browse the repository at this point in the history
…tatuses
  • Loading branch information
Heavybullets8 committed Dec 24, 2023
1 parent 0fd3cf6 commit 946a882
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functions/update/commander.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ get_apps_with_status() {

# Call the existing function and process its output
while IFS=, read -r app_name status; do
# If the status is "stopAll-on" or "operator", append the app_name and status to the apps_with_status array
if [[ "$status" == "stopAll-on" ]] || [[ "$status" == "operator" ]] || [[ "$status" == "cnpg" ]]; then
apps_with_status+=("$app_name,$status")
fi
# Append the app_name and status to the apps_with_status array
apps_with_status+=("$app_name,$status")
done < <(check_filtered_apps "${array[@]/,*}")
}

Expand Down

0 comments on commit 946a882

Please sign in to comment.