diff options
Diffstat (limited to 'modup.sh')
-rwxr-xr-x | modup.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -16,13 +16,14 @@ for i in $sub_modules; do cd $i git submodule update --remote $* - # In case our submodules have their own submodules. - # - git submodule update --init --recursive $* + if [ $? -ne 0 ]; then + echo "submodule update FAILED" 1>&2 + exit 1 + fi - # Set it back to remote's HEAD. + # In case our submodules have their own submodules. # - git submodule update --remote $* + git submodule foreach git submodule update --init --recursive if [ $? -ne 0 ]; then echo "submodule update FAILED" 1>&2 |