From 399f167219306dc7ece6b31b4006a2deb2c40eff Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 16 Oct 2017 14:16:08 -0400 Subject: [PATCH] Ignore binary files when grepping Change-Id: I798bda2e55036c3b4aab1cde2a07aca9d2191431 Signed-off-by: Thanh Ha --- .jjb-test/expected-xml/gerrit-ciman-jjb-verify | 2 +- .jjb-test/expected-xml/github-ciman-jjb-verify | 2 +- shell/jjb-check-unicode.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.16.6