[ROCm][CI] Fix false multi-node detection on native CI (#54989)

Signed-off-by: Sheral Kumar <shekumar@amd.com>
Co-authored-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Sheral Kumar
2026-09-02 13:53:07 -05:00
committed by GitHub
co-authored by Andreas Karatzas
parent 1945a94575
commit 0e3ac4907d
@@ -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