diff options
| author | TitanSnow <[email protected]> | 2017-04-24 13:28:32 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-24 13:28:32 +0800 |
| commit | 630f5f17601e5a35fb8b2e03fd7e3aad7af76c02 (patch) | |
| tree | c9263736e8cbde3dd7c083342d937919649f8d00 /scripts | |
| parent | 748dacd2ada91b3f0b373552e9b9c9d472f2d8a8 (diff) | |
overridable $ver & $branch
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/get.ps1 | 4 |
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{ |
