Skip to content

Commit

Permalink
no repotool helper script in global install
Browse files Browse the repository at this point in the history
  • Loading branch information
enricosada committed Jan 29, 2018
1 parent 3fac99e commit 23e2e2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Paket.Core/Installation/WrapperToolGeneration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,14 @@ module WrapperToolGeneration =

{ ScriptAddToPATHShell.PartialPath = Path.Combine(scriptPath, "add_to_PATH.sh") }
|> ScriptContent.ShellAddToPATH ] )

let isGlobalToolInstall =
toolWrapperInDir
|> List.map fst
|> List.exists (fun tool -> tool.Name = Constants.PaketGlobalExeName)

[ yield! wrapperScripts
yield! installToPathScripts ]
if isGlobalToolInstall then
()
else
yield! installToPathScripts ]

0 comments on commit 23e2e2d

Please sign in to comment.