From 3ddb7daa9763ab34f1e1df3f31a5ad6cfbdab4fe Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 14 Oct 2009 18:29:33 -0700 Subject: [PATCH] fix build: avoid infinite loop when cd fails. TBR=r OCL=35750 CL=35750 --- src/clean.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clean.bash b/src/clean.bash index f5cd3b0573..2bfc88f22c 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -8,9 +8,9 @@ rm -f $GOROOT/lib/*.a for i in lib9 libbio libcgo libmach libregexp cmd pkg \ ../misc/cgo/gmp ../misc/cgo/stdio \ ../usr/r/rpc ../usr/dsymonds/iterable \ - ../usr/austin/eval ../usr/austin/ogle ../test/bench + ../test/bench do( - cd $i + cd $i || exit 1 if test -f clean.bash; then bash clean.bash else -- 2.48.1