From 17c10baffdde4e054c489ec6a4e6311c139d0b0d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 16 Dec 2015 22:52:51 +0100 Subject: [PATCH] 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. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5