Skip to content

Commit 3918f89

Browse files
authored
Merge pull request #2553 from OmniSharp/dev/jorobich/fix-run-script
Use double quote when quoting un script path
2 parents 9cec32d + 8769bcd commit 3918f89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void InstallDotNetSdk(BuildEnvironment env, BuildPlan plan, string version, stri
7777

7878
if (!Platform.Current.IsWindows)
7979
{
80-
Run("chmod", $"+x '{scriptFilePath}'");
80+
Run("chmod", $"+x \"{scriptFilePath}\"");
8181
}
8282

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

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

472472
CopyExtraDependencies(env, outputFolder);
473473
AddOmniSharpBindingRedirects(omnisharpFolder);

0 commit comments

Comments
 (0)