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/push.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git/push.sh') diff --git a/git/push.sh b/git/push.sh index cd1c1b8..d288f3a 100755 --- a/git/push.sh +++ b/git/push.sh @@ -25,5 +25,10 @@ for i in $modules; do git push $ops origin $1 fi + if [ $? -ne 0 ]; then + echo "push FAILED" 1>&2 + exit 1 + fi + cd $wd done -- cgit v1.1