From: nbd Date: Sat, 5 Mar 2016 10:49:59 +0000 (+0000) Subject: build: fix git prereq check to not rely on being in a git directory (#21968) X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=2e893cf6077e2d5a6f19010f8687c96ec80db7a7;p=openwrt.git build: fix git prereq check to not rely on being in a git directory (#21968) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48926 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 23a5b932ed..443b17399d 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -155,7 +155,7 @@ $(eval $(call SetupHostCommand,svn,Please install the Subversion client, \ svn --version | grep Subversion)) $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \ - git submodule update --help 2>&1 | grep -- --recursive)) + git submodule --help 2>&1 | grep -q -- --recursive)) $(eval $(call SetupHostCommand,file,Please install the 'file' package, \ file --version 2>&1 | grep file))