]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Abort on error.
authorSimon Ruderich <simon@ruderich.org>
Fri, 5 Jul 2013 16:14:43 +0000 (18:14 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 5 Jul 2013 16:14:43 +0000 (18:14 +0200)
setup.sh

index e16c7772e4574314874e7f4c78739ccc81639892..cf7eb54fe5cf5afe3ab45b405754f0202d000909 100755 (executable)
--- 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