Skip to content
Permalink
Browse files

Case insensitive version check

Resolves #326
  • Loading branch information...
clong committed Oct 8, 2019
1 parent bb45da7 commit 3c34ded6095cf82eea814b8145f11541591e07c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 3c34ded

Please sign in to comment.
You can’t perform that action at this time.