summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/scan-tools.sh13
1 files changed, 7 insertions, 6 deletions
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