From 8899a8271338ba19f32bae1b30e0df0392afe1bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2011 16:37:11 +0200 Subject: Add error handling to git scripts --- git/branch.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'git/branch.sh') diff --git a/git/branch.sh b/git/branch.sh index 4362fb4..14d72dd 100755 --- a/git/branch.sh +++ b/git/branch.sh @@ -11,5 +11,11 @@ for i in $modules; do echo "branch $i" 1>&2 cd $i git branch $* + + if [ $? -ne 0 ]; then + echo "branch FAILED" 1>&2 + exit 1 + fi + cd $wd done -- cgit v1.1