Skip to content

Commit 5058b04

Browse files
authored
Update ProcessUtils.fs
1 parent 16f36d6 commit 5058b04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/Fake.Core.Process/ProcessUtils.fs

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ module ProcessUtils =
4343
// and https://github.com/fsharp/FAKE/issues/1899
4444
Environment.environVarOrDefault "PATHEXT" ".COM;.EXE;.BAT"
4545
|> String.split ';'
46-
|> Seq.collect (fun postFix -> findFilesInternal path (file + postFix))
47-
|> fun findings -> Seq.append findings (findFilesInternal path file)
48-
else findFilesInternal path file
46+
|> Seq.collect (fun postFix -> findFilesInternal dirs (file + postFix))
47+
|> fun findings -> Seq.append findings (findFilesInternal dirs file)
48+
else findFilesInternal dirs file
4949

5050
/// Searches the given directories for all occurrences of the given file name
5151
/// [omit]
@@ -66,7 +66,7 @@ module ProcessUtils =
6666
Environment.pathDirectories
6767
|> Seq.filter Path.isValidPath
6868
|> Seq.append [ "." ]
69-
|> fun path -> findFiles path file
69+
|> fun dirs -> findFiles dirs file
7070

7171
/// Searches the current directory and the directories within the PATH
7272
/// environment variable for the given file. If successful returns the full

0 commit comments

Comments
 (0)