summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-22 09:33:25 +0800
committerTitanSnow <[email protected]>2017-04-22 09:33:25 +0800
commit1c2132e3456d2f022024f6ee64ed19bc86d2833c (patch)
tree5bddbc020bf25e3f6208bd82ac1b24304676bc72 /scripts
parent0b1330c6b4774bd5469b4dc78bc051806d35abbf (diff)
revert 440edf5
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 8f2118bdd..539a0d7b4 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -4,8 +4,8 @@
$outfile=($env:TMP,$env:TEMP,'.' -ne $null)[0]+"\$pid-xmake-installer.exe"
$ver='v2.1.3'
-Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$outfile" -ErrorAction Stop
-Start-Process -FilePath "$outfile" -ArgumentList '/S /D=C:\xmake' -Wait -ErrorAction Stop
+Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$outfile"
+Start-Process -FilePath "$outfile" -ArgumentList '/S /D=C:\xmake' -Wait
Remove-Item "$outfile"
$env:Path+=";C:\xmake"
[Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::User)+";C:\xmake",[System.EnvironmentVariableTarget]::User)