From: Vincent Bernat Date: Wed, 16 Dec 2015 21:52:51 +0000 (+0100) Subject: build: don't do a submodule update if not a git checkout X-Git-Tag: 0.8.0~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17c10baffdde4e054c489ec6a4e6311c139d0b0d;p=thirdparty%2Flldpd.git build: don't do a submodule update if not a git checkout This can happen if it's just a tarball created from a git tree, but not a checkout. --- diff --git a/autogen.sh b/autogen.sh index b3176842..55ca446d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,7 @@ set -e -[ ! -e .gitmodules ] || { +[ ! -e .gitmodules ] || [ ! -d .git ] || { echo "autogen.sh: updating git submodules" git submodule init git submodule update