diff options
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{ |
