浏览代码

fix syntax error

Waldemar Brodkorb 10 年之前
父节点
当前提交
d3b0b18ff4
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      scripts/scan-tools.sh

+ 7 - 6
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