diff options
| author | TitanSnow <[email protected]> | 2017-04-22 09:33:25 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-22 09:33:25 +0800 |
| commit | 1c2132e3456d2f022024f6ee64ed19bc86d2833c (patch) | |
| tree | 5bddbc020bf25e3f6208bd82ac1b24304676bc72 /scripts | |
| parent | 0b1330c6b4774bd5469b4dc78bc051806d35abbf (diff) | |
revert 440edf5
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 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) |
