From 348ff0a36862b08deede3b35e10c54c8da43d88c Mon Sep 17 00:00:00 2001 From: Mr-Tao Date: Sun, 5 Sep 2021 22:57:52 +0200 Subject: [PATCH] Quote $dotnetRoot argument to InstallDotNet invocation Failure to quote the argument leads to incorrect assignment of positional arguments if the working path contains spaces. fixes #2435 --- eng/common/dotnet-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/dotnet-install.sh b/eng/common/dotnet-install.sh index fdfeea66e7..815a7f8404 100755 --- a/eng/common/dotnet-install.sh +++ b/eng/common/dotnet-install.sh @@ -75,7 +75,7 @@ if [[ $architecture != "" ]] && [[ $architecture != $buildarch ]]; then dotnetRoot="$dotnetRoot/$architecture" fi -InstallDotNet $dotnetRoot $version "$architecture" $runtime true $runtimeSourceFeed $runtimeSourceFeedKey || { +InstallDotNet "$dotnetRoot" $version "$architecture" $runtime true $runtimeSourceFeed $runtimeSourceFeedKey || { local exit_code=$? Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2 ExitWithExitCode $exit_code