From da7ae539457812eea92ba639d70e5dda85d96a75 Mon Sep 17 00:00:00 2001 From: Guo Ren Date: Fri, 24 Nov 2017 21:31:32 +0800 Subject: scripts: Bugfix compile error on chinese system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The command "bash --version" output "Version 4.x", but in a chinese locale system will display as "版本 4.x". Signed-off-by: Guo Ren --- scripts/prereq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/prereq.sh') diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 0222172b9..ca2b54640 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -225,7 +225,7 @@ printf " ---> checking if bash is installed.. " if which bash >/dev/null; then printf "found\n" printf " ---> checking if it is bash 4.x.. " - bash --version 2>/dev/null| grep -i "Version 4" >/dev/null + bash --version 2>/dev/null| grep "GNU bash" | grep -i " 4." >/dev/null if [ $? -eq 0 ]; then printf "yes\n" else -- cgit v1.2.3