From 1c2132e3456d2f022024f6ee64ed19bc86d2833c Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Sat, 22 Apr 2017 09:33:25 +0800 Subject: revert 440edf5 --- scripts/get.ps1 | 4 ++-- 1 file 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) -- cgit v1.3.1