summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-24 13:28:32 +0800
committerTitanSnow <[email protected]>2017-04-24 13:28:32 +0800
commit630f5f17601e5a35fb8b2e03fd7e3aad7af76c02 (patch)
treec9263736e8cbde3dd7c083342d937919649f8d00 /scripts
parent748dacd2ada91b3f0b373552e9b9c9d472f2d8a8 (diff)
overridable $ver & $branch
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index 83062b5f2..59be2c9db 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -44,7 +44,7 @@ try{
writeErrorTip 'Please set environment var "TMP" to another path'
myExit 1
}
-$ver='v2.1.3'
+if($ver -eq $null){ $ver='v2.1.3' }
Write-Host 'Start downloading... Hope amazon S3 is not broken again'
try{
Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$outfile"
@@ -75,7 +75,7 @@ try{
writeErrorTip 'But xmake could not run... Why?'
myExit 1
}
-$branch='master'
+if($branch -eq $null){ $branch='master' }
Write-Host "Pulling xmake from branch $branch"
$outfile=$temppath+"\$pid-xmake-repo.zip"
try{