[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:
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
|
||||
|
||||
Reference in New Issue
Block a user