Fix shellcheck issue with implicent array concat
[releng/builder.git] / jjb / opendaylight-infra-cleanup-stale-stacks.sh
index 32bf97088e59b986235fe4858fc6f944050dff14..a4c5ba32d872a01a589866d1bf485fcff89bfa09 100644 (file)
@@ -37,7 +37,7 @@ done
 # delete them.
 for STACK_NAME in "${OS_STACKS[@]}"; do
     STACK_STATUS=$(openstack stack show -f json -c "stack_status" "$STACK_NAME" | jq -r '."stack_status"')
-    if [[ "${ACTIVE_BUILDS[@]}" =~ $STACK_NAME ]]; then
+    if [[ "${ACTIVE_BUILDS[*]}" =~ $STACK_NAME ]]; then
         # No need to delete stacks if there exists an active build for them
         continue
     else