Skip to content

Commit

Permalink
Invert the logic for finding paket. If it finds "paket.exe", use that…
Browse files Browse the repository at this point in the history
…, else try search for "paket"
  • Loading branch information
seanamosw committed Aug 1, 2019
1 parent ceb1805 commit 2ff27b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/Fake.DotNet.Paket/Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ type PaketPackParams =
PinProjectReferences : bool }

let private findPaketExecutable () =
match Tools.tryFindToolFolderInSubPath "paket" with
match Tools.tryFindToolFolderInSubPath "paket.exe" with
| Some folder ->
folder @@ "paket"
folder @@ "paket.exe"
| None ->
(Tools.findToolFolderInSubPath "paket.exe" (Directory.GetCurrentDirectory() @@ ".paket")) @@ "paket.exe"
(Tools.findToolFolderInSubPath "paket" (Directory.GetCurrentDirectory() @@ ".paket")) @@ "paket"

/// Paket pack default parameters
let PaketPackDefaults() : PaketPackParams =
Expand Down

0 comments on commit 2ff27b9

Please sign in to comment.