]> Cypherpunks.ru repositories - gostls13.git/commit
make.bash: fix misuse of continue
authorCherry Mui <cherryyz@google.com>
Thu, 13 May 2021 23:22:57 +0000 (19:22 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 18 May 2021 15:00:55 +0000 (15:00 +0000)
commit690a8c3fb136431d4f22894c545ea99278758570
treed2b901b91775fff92b954f316310a0f17fb81b17
parent8b0901fd32aa9c29a1fa4ed8cd517914920a1509
make.bash: fix misuse of continue

Apparently, in bash, the "continue" keyword can only be used
inside of a loop, not in an if block. If readelf exists but $CC
does not, make.bash emits a warning:

./make.bash: line 135: continue: only meaningful in a `for', `while', or `until' loop

Change it to a conditional.

Change-Id: I00a0940ed99bc0c565094e506705961b6b3d362e
Reviewed-on: https://go-review.googlesource.com/c/go/+/320170
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/make.bash