From bc50f3a504082c3fca9aa84192a9e85b28102821 Mon Sep 17 00:00:00 2001 From: Max Malook Date: Wed, 6 Jan 2016 11:20:39 +0100 Subject: [PATCH] find tool path for octo.exe --- src/app/FakeLib/OctoTools.fs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/FakeLib/OctoTools.fs b/src/app/FakeLib/OctoTools.fs index 8fff804f77f..7564a47ecf1 100644 --- a/src/app/FakeLib/OctoTools.fs +++ b/src/app/FakeLib/OctoTools.fs @@ -124,9 +124,14 @@ let deleteOptions = { Project = ""; MinVersion = ""; MaxVersion = "" } /// Default parameters to call octo.exe. -let octoParams = { - ToolName = "Octo.exe"; ToolPath = ""; Command = ListEnvironments; - Server = serverOptions; Timeout = TimeSpan.MaxValue; WorkingDirectory = "" } +let octoParams = + let toolName = "Octo.exe" + { ToolPath = findToolFolderInSubPath toolName (currentDirectory @@ "tools" @@ "OctopusTools") + ToolName = toolName + Command = ListEnvironments + Server = serverOptions + Timeout = TimeSpan.MaxValue + WorkingDirectory = "" } /// [omit] let optionalStringParam p o =