From: Thanh Ha Date: Mon, 16 Oct 2017 18:16:08 +0000 (-0400) Subject: Ignore binary files when grepping X-Git-Tag: v0.11.0~13 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=0555e7cedb757dccee40bcdf2c9aaf6deb278d66;p=releng%2Fglobal-jjb.git Ignore binary files when grepping Change-Id: I798bda2e55036c3b4aab1cde2a07aca9d2191431 Signed-off-by: Thanh Ha --- diff --git a/.jjb-test/expected-xml/gerrit-ciman-jjb-verify b/.jjb-test/expected-xml/gerrit-ciman-jjb-verify index 2a9896fa..a34f9c0b 100644 --- a/.jjb-test/expected-xml/gerrit-ciman-jjb-verify +++ b/.jjb-test/expected-xml/gerrit-ciman-jjb-verify @@ -303,7 +303,7 @@ popd ############################################################################## 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 diff --git a/.jjb-test/expected-xml/github-ciman-jjb-verify b/.jjb-test/expected-xml/github-ciman-jjb-verify index 5705ebc9..d69f9baa 100644 --- a/.jjb-test/expected-xml/github-ciman-jjb-verify +++ b/.jjb-test/expected-xml/github-ciman-jjb-verify @@ -251,7 +251,7 @@ popd ############################################################################## 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 diff --git a/shell/jjb-check-unicode.sh b/shell/jjb-check-unicode.sh index e1d28a02..284d6db2 100644 --- a/shell/jjb-check-unicode.sh +++ b/shell/jjb-check-unicode.sh @@ -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