Skip to content

Commit 843374c

Browse files
committed
Use case insensitive matching to find Yarn file
1 parent 7a6e2e0 commit 843374c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/FakeLib/YarnHelper.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let private yarnFileName =
1111
| true ->
1212
System.Environment.GetEnvironmentVariable("PATH")
1313
|> fun path -> path.Split ';'
14-
|> Seq.tryFind (fun p -> p.Contains "yarn")
14+
|> Seq.tryFind (fun p -> p.IndexOf("yarn", StringComparison.OrdinalIgnoreCase) >= 0)
1515
|> fun res ->
1616
match res with
1717
| Some yarn when File.Exists (sprintf @"%s\yarn.cmd" yarn) -> (sprintf @"%s\yarn.cmd" yarn)

0 commit comments

Comments
 (0)