fix(wsl): only validate the mounted windows drive

resolves #2632
This commit is contained in:
Jan De Dobbeleer 2022-08-28 18:51:14 +02:00 committed by Jan De Dobbeleer
parent 07eba99d6e
commit 199993b891

View file

@ -98,7 +98,7 @@ func (env *ShellEnvironment) WindowsRegistryKeyValue(path string) (*WindowsRegis
}
func (env *ShellEnvironment) InWSLSharedDrive() bool {
return env.IsWsl() && strings.HasPrefix(env.Pwd(), "/mnt/")
return env.IsWsl() && strings.HasPrefix(env.Pwd(), "/mnt/c")
}
func (env *ShellEnvironment) ConvertToWindowsPath(path string) string {