Skip to content

Commit

Permalink
Code review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 committed Feb 4, 2019
1 parent f0706b4 commit 1006811
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,8 @@ function GetDotNetInstallScript([string] $dotnetRoot) {

function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = "") {
$installScript = GetDotNetInstallScript $dotnetRoot
if ($architecture -eq "") {
& $installScript -Version $version -InstallDir $dotnetRoot
}
else {
& $installScript -Version $version -InstallDir $dotnetRoot -Architecture $architecture
}
$archArg = if ($architecture) { $architecture } else { "<auto>" }
& $installScript -Version $version -InstallDir $dotnetRoot -Architecture $archArg
if ($lastExitCode -ne 0) {
Write-Host "Failed to install dotnet cli (exit code '$lastExitCode')." -ForegroundColor Red
ExitWithExitCode $lastExitCode
Expand Down

0 comments on commit 1006811

Please sign in to comment.