From 199993b891d9d1ddfcdae41304544a8300c2b4d8 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 28 Aug 2022 18:51:14 +0200 Subject: [PATCH] fix(wsl): only validate the mounted windows drive resolves #2632 --- src/environment/shell_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environment/shell_unix.go b/src/environment/shell_unix.go index 85077f83..3060fbca 100644 --- a/src/environment/shell_unix.go +++ b/src/environment/shell_unix.go @@ -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 {