Always run 'git submodule update' when git is in use
[yazproxy-moved-to-github.git] / buildconf.sh
index d71be7a..a037772 100755 (executable)
@@ -1,10 +1,12 @@
 #!/bin/sh
 
 test -d config || mkdir config
-if test -d m4/.git -a -d doc/common/.git; then
-    :
-else
-    git submodule init
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+        :
+    else
+        git submodule init
+    fi
     git submodule update
 fi