Skip to content

Commit acc1d57

Browse files
authored
Fix greedy wsl detection (#612)
1 parent 641ed00 commit acc1d57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DiffEngine/BuildServerDetector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static BuildServerDetector()
4343
// https://www.appveyor.com/docs/environment-variables/
4444
IsAppVeyor = variables.Contains("APPVEYOR");
4545

46-
IsWsl = variables.Contains("WSLENV");
46+
IsWsl = variables.Contains("WSL_DISTRO_NAME");
4747

4848
// AzureDevops
4949
// https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#agent-variables

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649</NoWarn>
5-
<Version>15.10.0</Version>
5+
<Version>15.10.1</Version>
66
<AssemblyVersion>1.0.0</AssemblyVersion>
77
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
88
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>

0 commit comments

Comments
 (0)