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