Skip to content

Commit

Permalink
Merge pull request OmniSharp#2553 from OmniSharp/dev/jorobich/fix-run…
Browse files Browse the repository at this point in the history
…-script

Use double quote when quoting un script path
  • Loading branch information
JoeRobich authored Jul 27, 2023
2 parents 9cec32d + 8769bcd commit 3918f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void InstallDotNetSdk(BuildEnvironment env, BuildPlan plan, string version, stri

if (!Platform.Current.IsWindows)
{
Run("chmod", $"+x '{scriptFilePath}'");
Run("chmod", $"+x \"{scriptFilePath}\"");
}

var argList = new List<string>();
Expand Down Expand Up @@ -467,7 +467,7 @@ string PublishMonoBuildForPlatform(string project, MonoRuntime monoRuntime, Buil

var runScriptFile = CombinePaths(env.Folders.MonoPackaging, "run");
FileHelper.Copy(runScriptFile, CombinePaths(outputFolder, "run"), overwrite: true);
Run("chmod", $"+x '{CombinePaths(outputFolder, "run")}'");
Run("chmod", $"+x \"{CombinePaths(outputFolder, "run")}\"");

CopyExtraDependencies(env, outputFolder);
AddOmniSharpBindingRedirects(omnisharpFolder);
Expand Down

0 comments on commit 3918f89

Please sign in to comment.