do_cmake.sh: do not perform 'git submodule update' if building from tarball

Signed-off-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
This commit is contained in:
Vladimir Bashkirtsev 2020-11-25 12:10:49 +10:30
parent 52ef68c681
commit 50564a60ce

View File

@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -ex
git submodule update --init --recursive
if [ -d .git ]; then
git submodule update --init --recursive
fi
: ${BUILD_DIR:=build}
: ${CEPH_GIT_DIR:=..}