From: Vladimir Bashkirtsev Date: Wed, 25 Nov 2020 01:40:49 +0000 (+1030) Subject: do_cmake.sh: do not perform 'git submodule update' if building from tarball X-Git-Tag: v16.1.0~95^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=50564a60ce57820851a7c05ee26c93bf5cfd2a96;p=ceph.git do_cmake.sh: do not perform 'git submodule update' if building from tarball Signed-off-by: Vladimir Bashkirtsev --- diff --git a/do_cmake.sh b/do_cmake.sh index 345986d630c..4cb07c106b6 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -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:=..}