From 630f5f17601e5a35fb8b2e03fd7e3aad7af76c02 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Mon, 24 Apr 2017 13:28:32 +0800 Subject: overridable $ver & $branch --- scripts/get.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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{ -- cgit v1.3.1