Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro authored Sep 10, 2021
1 parent 7abb4ef commit a31331f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Environment.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Environment =

let tryGetTool toolName =
if isWin then
spawnAndGetTrimmedOutput "cmd /C where" (ResizeArray [toolName])
spawnAndGetTrimmedOutput "cmd" (ResizeArray ["/C"; "where"; toolName])
|> Promise.map (fun (err, path, errs) -> if path <> "" then Some path else None )
|> Promise.map (Option.bind (fun paths -> paths.Split('\n') |> Array.map (String.trim) |> Array.tryHead))
else
Expand Down

0 comments on commit a31331f

Please sign in to comment.