]> Cypherpunks repositories - gostls13.git/commitdiff
buildall.bash: exit 1 when make.bash fails
authorShenghou Ma <minux@golang.org>
Sun, 17 May 2015 00:05:58 +0000 (20:05 -0400)
committerMinux Ma <minux@golang.org>
Sun, 17 May 2015 01:40:33 +0000 (01:40 +0000)
If make.bash fails, there is no point continuing any further.

Fixes #10880.

Change-Id: I350cc16999372422ad3d2e0327d52d467886a5b1
Reviewed-on: https://go-review.googlesource.com/10180
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/buildall.bash

index a07529e73356907d9b3b7484f7d3fa9c85fbbc42..ba23d31a50c5e29120093985bae6671d638014f5 100755 (executable)
@@ -36,7 +36,7 @@ fi
 targets="$((ls runtime | sed -n 's/^rt0_\(.*\)_\(.*\)\.s/\1-\2/p'; echo linux-386-387 linux-arm-arm5) | sort | egrep -v android-arm | egrep "$pattern" | egrep 'linux|nacl')
 $(ls runtime | sed -n 's/^rt0_\(.*\)_\(.*\)\.s/\1-\2/p' | egrep -v 'android-arm|darwin-arm' | egrep "$pattern" | egrep -v 'linux|nacl')"
 
-./make.bash
+./make.bash || exit 1
 GOROOT="$(cd .. && pwd)"
 
 failed=false