Ignore binary files when grepping 13/6913/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Oct 2017 18:16:08 +0000 (14:16 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Oct 2017 18:21:54 +0000 (14:21 -0400)
Change-Id: I798bda2e55036c3b4aab1cde2a07aca9d2191431
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-ciman-jjb-verify
.jjb-test/expected-xml/github-ciman-jjb-verify
shell/jjb-check-unicode.sh

index 2a9896f..a34f9c0 100644 (file)
@@ -303,7 +303,7 @@ popd
 ##############################################################################
 echo &quot;---&gt; jjb-check-unicode.sh&quot;
 
-if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then
+if LC_ALL=C grep -I -r '[^[:print:][:space:]]' jjb/; then
     echo &quot;Found files containing non-ascii characters.&quot;
     exit 1
 fi
index 5705ebc..d69f9ba 100644 (file)
@@ -251,7 +251,7 @@ popd
 ##############################################################################
 echo &quot;---&gt; jjb-check-unicode.sh&quot;
 
-if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then
+if LC_ALL=C grep -I -r '[^[:print:][:space:]]' jjb/; then
     echo &quot;Found files containing non-ascii characters.&quot;
     exit 1
 fi
index e1d28a0..284d6db 100644 (file)
@@ -10,7 +10,7 @@
 ##############################################################################
 echo "---> jjb-check-unicode.sh"
 
-if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then
+if LC_ALL=C grep -I -r '[^[:print:][:space:]]' jjb/; then
     echo "Found files containing non-ascii characters."
     exit 1
 fi