mirror of https://github.com/databricks/cli.git
Fixed building Python artifacts on Windows with WSL (#1249)
## Changes Fixed building Python artifacts on Windows with WSL Fixes #1243
This commit is contained in:
parent
e1407038d3
commit
58e1db58b1
|
@ -34,8 +34,12 @@ func newBashShell() (shell, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert to lowercase for case-insensitive comparison
|
||||||
|
// Some systems may return some parts of the path in uppercase.
|
||||||
|
outLower := strings.ToLower(out)
|
||||||
// Skipping WSL bash if found one
|
// Skipping WSL bash if found one
|
||||||
if strings.Contains(out, `\Windows\System32\bash.exe`) || strings.Contains(out, `\Microsoft\WindowsApps\bash.exe`) {
|
if strings.Contains(outLower, `\windows\system32\bash.exe`) ||
|
||||||
|
strings.Contains(outLower, `\microsoft\windowsapps\bash.exe`) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue