Skip to content

Commit

Permalink
Fix aspnet#175 (dnvm use alias doesn't work when alias points to core…
Browse files Browse the repository at this point in the history
…clr)
  • Loading branch information
csnemes committed May 1, 2015
1 parent 0c3fc02 commit 7e80e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dnvm.ps1
Expand Up @@ -261,11 +261,11 @@ function GetArch($Architecture, $FallBackArch = $DefaultArchitecture) {
}
}

function GetRuntime($Runtime) {
function GetRuntime($Runtime, $FallBackRuntime = $DefaultRuntime) {
if(![String]::IsNullOrWhiteSpace($Runtime)) {
$Runtime
} else {
$DefaultRuntime
$FallBackRuntime
}
}

Expand Down Expand Up @@ -342,7 +342,7 @@ function Get-RuntimeName(
$BaseName = Get-Content $aliasPath

$Architecture = GetArch $Architecture (Get-PackageArch $BaseName)
$Runtime = GetRuntime $Runtime (Get-PackageArch $BaseName)
$Runtime = GetRuntime $Runtime (Get-PackageRuntime $BaseName)
$Version = Get-PackageVersion $BaseName
}

Expand Down

0 comments on commit 7e80e84

Please sign in to comment.