diff --git a/src/platform/shell_unix.go b/src/platform/shell_unix.go index 7b0f03ee..f39c08ec 100644 --- a/src/platform/shell_unix.go +++ b/src/platform/shell_unix.go @@ -39,8 +39,7 @@ func (env *Shell) IsWsl() bool { defer func() { env.Cache().Set(key, strconv.FormatBool(val), -1) }() - version := env.FileContent("/proc/version") - val = strings.Contains(version, "microsoft") + val = env.HasCommand("wslpath") env.Debug(strconv.FormatBool(val)) return val }