Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions scripts/ci/docker/linux-runner/supervise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,18 @@ host_probe() {
fi
return 0
fi
command -v powershell.exe >/dev/null 2>&1 || return 0
# Resolution robuste de powershell.exe : le contexte systemd n'herite pas du
# PATH Windows annexe (login WSL uniquement) -- wslpath fournit l'absolu.
# wslpath pour le -File : natif WSL ; cygpath : repli Cygwin/Git-Bash. Bash
# ne resout pas cygpath.exe sans suffixe sous WSL -- le repli POSIX cassait
# la sonde (hote NON MESURABLE) depuis #15123.
local psexe
psexe="$(command -v powershell.exe 2>/dev/null)"
[ -n "$psexe" ] || psexe="$(wslpath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' 2>/dev/null)"
[ -n "$psexe" ] || return 0
[ -f "$PROBE_PS1" ] || return 0
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass \
-File "$(cygpath -w "$PROBE_PS1" 2>/dev/null || echo "$PROBE_PS1")" \
"$psexe" -NoProfile -NonInteractive -ExecutionPolicy Bypass \
-File "$(wslpath -w "$PROBE_PS1" 2>/dev/null || cygpath -w "$PROBE_PS1" 2>/dev/null || echo "$PROBE_PS1")" \
2>/dev/null | tr -d '\r' | head -1
}

Expand Down
Loading