From 25422e392fda39afc8f344403ca2d34bc8bb6025 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 6 May 2019 10:28:03 +0200 Subject: prereq: check for bash 5, too --- scripts/prereq.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 91825f2db..c2f3bb73e 100755 --- a/scripts/prereq.sh +++ b/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 -- cgit v1.2.3