diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2019-05-06 10:28:03 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2019-05-06 10:28:03 +0200 |
commit | 25422e392fda39afc8f344403ca2d34bc8bb6025 (patch) | |
tree | 973a0c0922182d10a96ff1d36adf482394986abb | |
parent | f8d0864c18907ea4e21d0657b34869cda66dd452 (diff) |
prereq: check for bash 5, too
-rwxr-xr-x | scripts/prereq.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |