Skip to content

Commit

Permalink
Disable Quoting of process filename on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Dec 7, 2015
1 parent 21b8247 commit 025a2c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Cake.Core/IO/ProcessRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ public IProcess Start(FilePath filePath, ProcessSettings settings)
throw new ArgumentNullException("settings");
}

// Get the fileName
var fileName = _environment.IsUnix() ? filePath.FullPath : filePath.FullPath.Quote();

// Get the arguments.
var arguments = settings.Arguments ?? new ProcessArgumentBuilder();

if (!settings.Silent)
{
// Log the filename and arguments.
var message = string.Concat(filePath, " ", arguments.RenderSafe().TrimEnd());
var message = string.Concat(fileName, " ", arguments.RenderSafe().TrimEnd());
_log.Verbose(Verbosity.Diagnostic, "Executing: {0}", message);
}

Expand All @@ -63,7 +66,7 @@ public IProcess Start(FilePath filePath, ProcessSettings settings)
settings.WorkingDirectory = workingDirectory.MakeAbsolute(_environment);

// Create the process start info.
var info = new ProcessStartInfo(filePath.FullPath.Quote())
var info = new ProcessStartInfo(fileName)
{
Arguments = arguments.Render(),
WorkingDirectory = workingDirectory.FullPath,
Expand Down

0 comments on commit 025a2c7

Please sign in to comment.