From 3c34ded6095cf82eea814b8145f11541591e07c4 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Tue, 8 Oct 2019 12:00:26 -0700 Subject: [PATCH] Case insensitive version check Resolves https://github.com/clong/DetectionLab/issues/326 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 36b9f44..6886752 100755 --- a/build.sh +++ b/build.sh @@ -266,7 +266,7 @@ post_build_checks() { ATA_CHECK=$(curl --fail --write-out "%{http_code}" -ks https://192.168.38.103 -m 2) [[ $ATA_CHECK == 401 ]] && ATA_CHECK=1 - BASH_MAJOR_VERSION=$(/bin/bash --version | grep 'GNU bash' | grep -o version\.\.. | cut -d ' ' -f 2 | cut -d '.' -f 1) + BASH_MAJOR_VERSION=$(/bin/bash --version | grep 'GNU bash' | grep -oi version\.\.. | cut -d ' ' -f 2 | cut -d '.' -f 1) # Associative arrays are only supported in bash 4 and up if [ "$BASH_MAJOR_VERSION" -ge 4 ]; then declare -A SERVICES