Nojira upgrade3 (#25817)

* fix: typo

* fix: correct the script for unbound var

* fix: typo

* fix: typo
This commit is contained in:
Juana De La Cuesta
2025-05-06 18:21:33 +02:00
committed by GitHub
parent f68203549b
commit cb09696b1c

View File

@@ -90,7 +90,7 @@ if [ -z "$current_allocs" ]; then
error_exit "Failed to read allocs for node: $client_id"
fi
IDs=$(echo $ALLOCS | jq '[ .[] | select(.ClientStatus == \"running\")] | [.[].ID] | join(" ")')
IDs=$(echo $ALLOCS | jq '[ .[] | select(.ClientStatus == "running")] | [.[].ID] | join(" ")')
IFS=' ' read -r -a INPUT_ARRAY <<< "${IDs[*]}"
IFS=' ' read -r -a RUNNING_ARRAY <<< "$current_allocs"