Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
Fix Paket init
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Sep 13, 2017
1 parent 26d8298 commit 48940cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Forge.Core/Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ let Run args =
run f args' ^ getCwd()

let Init folder =
let paketFolder = folder </> ".paket"
if Directory.Exists paketFolder then
if File.Exists (paketFolder </> "paket.exe") |> not then copy folder

else
copy folder

if Directory.GetFiles folder |> Seq.exists (fun n -> n.EndsWith "paket.dependencies") |> not then
copy folder
Update ()
Run ["init"]
let deps = folder </> "paket.dependencies"
Expand Down

0 comments on commit 48940cd

Please sign in to comment.