summaryrefslogtreecommitdiff
path: root/git/checkout.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git/checkout.sh')
-rwxr-xr-xgit/checkout.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/git/checkout.sh b/git/checkout.sh
index 2cf5717..11643c4 100755
--- a/git/checkout.sh
+++ b/git/checkout.sh
@@ -16,5 +16,11 @@ for i in $modules; do
echo "checkout $i" 1>&2
cd $i
git checkout $*
+
+ if [ $? -ne 0 ]; then
+ echo "checkout FAILED" 1>&2
+ exit 1
+ fi
+
cd $wd
done