From: Simon Ruderich Date: Fri, 5 Jul 2013 16:14:43 +0000 (+0200) Subject: setup.sh: Abort on error. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d833e9f69422ab8702f877886bc30324a7787d3a;p=config%2Fdotfiles.git setup.sh: Abort on error. --- 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