fail build scripts if `git submodule update` fails

Summary:
public
When this happen, we don't want to waste time compiling infer for java, etc.,
only to realise later that the submodule is not there.

Reviewed By: akotulski

Differential Revision: D2921636

fb-gh-sync-id: b22c44c
shipit-source-id: b22c44c
master
Jules Villard 9 years ago committed by facebook-github-bot-1
parent c41cba92ea
commit 479ce841bc

@ -14,11 +14,8 @@ set -e
# repo in the first place?)
if test -d '.git'; then
printf 'git repository detected, updating submodule... '
if git submodule update --init > /dev/null; then
printf 'done\n'
else
printf 'error running git command\n'
fi
git submodule update --init > /dev/null
printf 'done\n'
else
echo 'no git repository detected; not updating git submodules'
fi

Loading…
Cancel
Save