diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/get.ps1 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 9b500d44c..769585ebd 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -5,9 +5,13 @@ param ( [string]$branch = "master", [string]$version = "v2.2.6", - [string]$installdir = $(Join-Path $env:HOME 'xmake') + [string]$installdir = $(Join-Path $(if($env:HOME) { $env:HOME } else { "C:\" }) 'xmake') ) +echo $branch +echo $version +echo $installdir + function myExit($code) { if ($code -is [int] -and $code -ne 0) { throw $Error[0] @@ -191,6 +195,6 @@ if (-not $env:CI) { } catch { } # continue registerTabCompletion } else { - Write-Host "Self bulid and tab completion registration has been skipped" + Write-Host "Self bulid and tab completion registration has been skipped for CI" } |
