Skip to content

Commit

Permalink
Merge branch 'hotfix/0.6.1'
Browse files Browse the repository at this point in the history
* hotfix/0.6.1:
  (GH-127) Fixed wrong path in cake-tool detection
  • Loading branch information
gep13 committed Mar 7, 2021
2 parents 1adfb1f + 6614ecc commit d39d3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cake.Scripting/CodeGen/CakeScriptGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private DirectoryPath GetCakePath(DirectoryPath toolPath)
userDotNetToolsPaths
.Union(directoriesInPath)
.Select(dir => dir.CombineWithFilePath(exe)))
.FirstOrDefault(x => _fileSystem.Exist(x));
.FirstOrDefault(x => _fileSystem.Exist(x))?.GetDirectory();
if (dotnetCakePath != null)
{
pattern = string.Concat(dotnetCakePath.FullPath, "/.store/**/Cake.dll");
Expand Down

0 comments on commit d39d3b8

Please sign in to comment.