From 440edf5ffcdcf344fe30638fc31795701610fd55 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Thu, 20 Apr 2017 11:46:28 +0800 Subject: set erroraction to stop --- 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 43e834f24..734c61bc5 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -3,8 +3,8 @@ # Invoke-Expression (Invoke-Webrequest -UseBasicParsing).Content $ver='v2.1.3' -Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$pid-xmake-installer.exe" -Start-Process -FilePath "$pid-xmake-installer.exe" -ArgumentList '/S /D=C:\xmake' -Wait +Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$pid-xmake-installer.exe" -ErrorAction Stop +Start-Process -FilePath "$pid-xmake-installer.exe" -ArgumentList '/S /D=C:\xmake' -Wait -ErrorAction Stop Remove-Item "$pid-xmake-installer.exe" $env:Path+=";C:\xmake" [Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::User)+";C:\xmake",[System.EnvironmentVariableTarget]::User) -- cgit v1.3.1