From d833e9f69422ab8702f877886bc30324a7787d3a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 5 Jul 2013 18:14:43 +0200 Subject: [PATCH] setup.sh: Abort on error. --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index e16c777..cf7eb54 100755 --- a/setup.sh +++ b/setup.sh @@ -28,5 +28,10 @@ for path in */setup.sh; do project=`echo "$path" | sed 's|/setup.sh$||'` echo "running setup.sh in '$project'" - ( cd "$project"; ./setup.sh >/dev/null ) + if ( cd "$project"; ./setup.sh >/dev/null ); then + : + else + echo "$project/setup.sh failed" >&2 + exit 1 + fi done -- 2.45.2