summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2017-11-24 21:31:32 +0800
committerWaldemar Brodkorb <wbx@openadk.org>2017-11-24 18:14:20 +0100
commitda7ae539457812eea92ba639d70e5dda85d96a75 (patch)
tree16578f896f8a663c53436f391c5b2e01e8182e21 /scripts
parent95bb119b6ea3eb7d75cb8759a6f4499fe7417ab7 (diff)
scripts: Bugfix compile error on chinese system.
The command "bash --version" output "Version 4.x", but in a chinese locale system will display as "版本 4.x". Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prereq.sh2
1 files changed, 1 insertions, 1 deletions
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