From 4b491a03f72a06a7bbe0a16c02a08f5591192e77 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 23 Nov 2020 15:31:12 -0700 Subject: [PATCH] install.sh: improve questionable test When grepping a binary, it's best to use LC_ALL=C and the -a option in addition to the already-supplied -q option. Make it so. Signed-off-by: Kyle J. McKay --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 24875a4..49048d7 100755 --- a/install.sh +++ b/install.sh @@ -349,7 +349,7 @@ We will now pause for a moment so you can reflect on this warning. EOT sleep 60 fi -if [ -n "$cfg_mirror" ] && [ "$cfg_mirror" != 0 ] && grep -q ns_parserr "$cfg_git_bin"; then +if [ -n "$cfg_mirror" ] && [ "$cfg_mirror" != 0 ] && LC_ALL=C grep -a -q ns_parserr "$cfg_git_bin"; then cat <<'EOT' *** -- 2.11.4.GIT