Merge pull request #587 from glen-84/patch-1
Fix variable names in dnvminstall.ps1
This commit is contained in:
commit
7613b7ee81
|
|
@ -1,6 +1,6 @@
|
|||
$tempPath = Join-Path $env:TEMP "dnvminstall"
|
||||
$kvmPs1Path = Join-Path $tempPath "dnvm.ps1"
|
||||
$kvmCmdPath = Join-Path $tempPath "dnvm.cmd"
|
||||
$dnvmPs1Path = Join-Path $tempPath "dnvm.ps1"
|
||||
$dnvmCmdPath = Join-Path $tempPath "dnvm.cmd"
|
||||
|
||||
Write-Host "Using temporary directory: $tempPath"
|
||||
if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
|
||||
|
|
@ -8,8 +8,8 @@ if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
|
|||
|
||||
$webClient = New-Object System.Net.WebClient
|
||||
Write-Host "Downloading DNVM.ps1 to $dnvmPs1Path"
|
||||
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1', $kvmPs1Path)
|
||||
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1', $dnvmPs1Path)
|
||||
Write-Host "Downloading DNVM.cmd to $dnvmCmdPath"
|
||||
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.cmd', $kvmCmdPath)
|
||||
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.cmd', $dnvmCmdPath)
|
||||
Write-Host "Installing DNVM"
|
||||
& $kvmCmdPath setup
|
||||
& $dnvmCmdPath setup
|
||||
|
|
|
|||
Loading…
Reference in New Issue