summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-06 18:51:11 +0800
committerOpportunityLiu <[email protected]>2019-06-06 18:51:11 +0800
commitf564e7dbd980ece14d7e2e15f4499d8c1b7db858 (patch)
treeaa554a8fdc74fd93a8e494422e4f91a83743b5ca /scripts
parenta1b6a1e11a7b0dacbe718b78e80c92107e43203b (diff)
fix
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get.ps18
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"
}