]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't do a submodule update if not a git checkout
authorVincent Bernat <vincent@bernat.im>
Wed, 16 Dec 2015 21:52:51 +0000 (22:52 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 16 Dec 2015 21:52:51 +0000 (22:52 +0100)
This can happen if it's just a tarball created from a git tree, but not
a checkout.

autogen.sh

index b3176842b7627034f999bca0ed8bed57305f8887..55ca446d71e074869820d9ae87ff9be2f85cf748 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-[ ! -e .gitmodules ] || {
+[ ! -e .gitmodules ] || [ ! -d .git ] || {
     echo "autogen.sh: updating git submodules"
     git submodule init
     git submodule update