Fix variable names in dnvminstall.ps1
This commit is contained in:
parent
e703a8c247
commit
2bb2d1484d
|
|
@ -1,6 +1,6 @@
|
||||||
$tempPath = Join-Path $env:TEMP "dnvminstall"
|
$tempPath = Join-Path $env:TEMP "dnvminstall"
|
||||||
$kvmPs1Path = Join-Path $tempPath "dnvm.ps1"
|
$dnvmPs1Path = Join-Path $tempPath "dnvm.ps1"
|
||||||
$kvmCmdPath = Join-Path $tempPath "dnvm.cmd"
|
$dnvmCmdPath = Join-Path $tempPath "dnvm.cmd"
|
||||||
|
|
||||||
Write-Host "Using temporary directory: $tempPath"
|
Write-Host "Using temporary directory: $tempPath"
|
||||||
if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
|
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
|
$webClient = New-Object System.Net.WebClient
|
||||||
Write-Host "Downloading DNVM.ps1 to $dnvmPs1Path"
|
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"
|
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"
|
Write-Host "Installing DNVM"
|
||||||
& $kvmCmdPath setup
|
& $dnvmCmdPath setup
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue