Browse Source

prereq: check for bash 5, too

Waldemar Brodkorb 5 months ago
parent
commit
25422e392f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/prereq.sh

+ 2 - 2
scripts/prereq.sh

@@ -230,8 +230,8 @@ done
 printf " --->  checking if bash is installed.. "
 if which bash >/dev/null; then
   printf "found\n"
-  printf " --->  checking if it is bash 4.x.. "
-  LC_ALL=C bash --version 2>/dev/null| grep -i "version 4" >/dev/null
+  printf " --->  checking if it is bash 4.x or 5.x"
+  LC_ALL=C bash --version 2>/dev/null| grep -i "version \(4\|5\)" >/dev/null
   if [ $? -eq 0 ]; then
     printf "yes\n"
   else