File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ IF EXIST "%~dp0\.git" (
16
16
REM need `< con` so that we can run this file from Node
17
17
REM (See http://stackoverflow.com/questions/9155289/calling-powershell-from-nodejs)
18
18
PowerShell.exe -executionpolicy ByPass -file " %~dp0 \scripts\windows\download-dev-bundle.ps1" < con
19
+ IF errorlevel 1 (
20
+ echo An error occurred while obtaining the dev_bundle. Please try again.
21
+ exit /b 1
22
+ )
19
23
)
20
24
21
25
rem if dev_bundle is the wrong version, remove it and get a new one
@@ -28,6 +32,10 @@ IF EXIST "%~dp0\.git" (
28
32
exit /b 1
29
33
)
30
34
PowerShell.exe -executionpolicy ByPass -file " %~dp0 \scripts\windows\download-dev-bundle.ps1" < con
35
+ IF errorlevel 1 (
36
+ echo An error occurred while obtaining the dev_bundle. Please try again.
37
+ exit /b 1
38
+ )
31
39
)
32
40
33
41
rem Only set this when we're in a checkout. When running from a release,
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ if (Test-Path $devbundle_zip) {
42
42
Write-Host " Extracting $TARBALL to the dev_bundle directory"
43
43
44
44
cmd / C " 7z.exe x $devbundle_zip -so | 7z.exe x -aoa -si -ttar -o$CHECKOUT_DIR \dev_bundle_XXX" | out-null
45
+ if ($LASTEXITCODE -ne 0 ) {
46
+ Exit 1
47
+ }
45
48
46
49
$downloaded_tmp = $CHECKOUT_DIR + " \dev_bundle_XXX"
47
50
$downloaded_path = $downloaded_tmp + " \dev_bundle_" + $PLATFORM + " _" + $BUNDLE_VERSION
You can’t perform that action at this time.
0 commit comments