fix(wsl): only fallback to .exe on WSL2

resolves #3024
This commit is contained in:
Jan De Dobbeleer 2022-10-29 15:33:25 +02:00 committed by Jan De Dobbeleer
parent b3c4ceafd0
commit 6b4c940880

View file

@ -98,7 +98,7 @@ func (env *ShellEnvironment) WindowsRegistryKeyValue(path string) (*WindowsRegis
}
func (env *ShellEnvironment) InWSLSharedDrive() bool {
if !env.IsWsl() {
if !env.IsWsl2() {
return false
}
windowsPath := env.ConvertToWindowsPath(env.Pwd())