diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-16 09:29:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-16 09:29:10 +0200 |
commit | 1c769bd9536fdc593a84d9e98739c1a7739d4963 (patch) | |
tree | cc7d91f004e6e7f4dcea8943df91a68ed5dd164c /modup.sh | |
parent | 861f9891045178af212cfd0d6034076aafffadca (diff) |
Improve modup script
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 |