diff --git a/.buildkite/scripts/hardware_ci/run-amd-test.sh b/.buildkite/scripts/hardware_ci/run-amd-test.sh index 721c690c71..9cc2e1c0ae 100755 --- a/.buildkite/scripts/hardware_ci/run-amd-test.sh +++ b/.buildkite/scripts/hardware_ci/run-amd-test.sh @@ -645,7 +645,7 @@ is_multi_node() { fi # Fallback: detect the bracket syntax structurally # Pattern: [...] && [...] (per-node command arrays) - if [[ "$cmds" =~ \[.*\].*\&\&.*\[.*\] ]]; then + if [[ "$cmds" == *'] && ['* ]]; then return 0 fi return 1