File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ $tempPath = Join-Path $env:TEMP "kvminstall"
2
2
$kvmPs1Path = Join-Path $tempPath " kvm.ps1"
3
3
$kvmCmdPath = Join-Path $tempPath " kvm.cmd"
4
4
5
- Write-Host " Using temporary directory: $tempPath " ;
6
- if (! [ System.IO.Directory ]::Exists( $tempPath )) {[ System.IO.Directory ]::CreateDirectory( $tempPath ) }
5
+ Write-Host " Using temporary directory: $tempPath "
6
+ if (! ( Test-Path $tempPath )) { md $tempPath }
7
7
8
8
9
9
$webClient = New-Object System.Net.WebClient
10
- Write-Host " Downloading KVM.ps1 to $kvmPs1Path " ;
11
- $webClient.DownloadFile (' https://raw.githubusercontent.com/aspnet/Home/master/kvm.ps1' , $kvmPs1Path );
12
- Write-Host " Downloading KVM.cmd to $kvmCmdPath " ;
13
- $webClient.DownloadFile (' https://raw.githubusercontent.com/aspnet/Home/master/kvm.cmd' , $kvmCmdPath );
14
- Write-Host " Installing KVM" ;
15
- & $kvmCmdPath setup;
10
+ Write-Host " Downloading KVM.ps1 to $kvmPs1Path "
11
+ $webClient.DownloadFile (' https://raw.githubusercontent.com/aspnet/Home/master/kvm.ps1' , $kvmPs1Path )
12
+ Write-Host " Downloading KVM.cmd to $kvmCmdPath "
13
+ $webClient.DownloadFile (' https://raw.githubusercontent.com/aspnet/Home/master/kvm.cmd' , $kvmCmdPath )
14
+ Write-Host " Installing KVM"
15
+ & $kvmCmdPath setup
You can’t perform that action at this time.
0 commit comments