From d3b0b18ff4ddb0adc10448819d35ab6440c63e5c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 26 Sep 2014 22:16:59 +0200 Subject: fix syntax error --- scripts/scan-tools.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index 2569d859b..93cd1dd70 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -250,12 +250,6 @@ if ! which gxargs >/dev/null 2>&1; then fi fi -if which grep >/dev/null 2>&1; then - if ! grep --version 2>/dev/null|grep GNU >/dev/null;then - host_build_grep=1 - fi -fi - if ! which gfind >/dev/null 2>&1; then if which find >/dev/null 2>&1; then if ! find --version 2>/dev/null|grep GNU >/dev/null;then @@ -264,6 +258,13 @@ if ! which gfind >/dev/null 2>&1; then fi fi +host_build_grep=0 +if which grep >/dev/null 2>&1; then + if ! grep --version 2>/dev/null|grep GNU >/dev/null;then + host_build_grep=1 + fi +fi + host_build_gawk=0 if ! which gawk >/dev/null 2>&1; then host_build_gawk=1 -- cgit v1.2.3