fix bash version detection

pull/58/head v2.4.11-rc2
Simon Let 6 years ago
parent fb52d9cab1
commit bacb4cdbb2
  1. 2
      scripts/install.sh

@ -20,7 +20,7 @@ bash_version=$(bash -c 'echo ${BASH_VERSION}')
bash_version_major=$(bash -c 'echo ${BASH_VERSINFO[0]}') bash_version_major=$(bash -c 'echo ${BASH_VERSINFO[0]}')
bash_version_minor=$(bash -c 'echo ${BASH_VERSINFO[1]}') bash_version_minor=$(bash -c 'echo ${BASH_VERSINFO[1]}')
bash_too_old="" bash_too_old=""
if [ "$bash_version_major" -lt 3 ]; then if [ "$bash_version_major" -le 3 ]; then
bash_too_old=true bash_too_old=true
elif [ "$bash_version_major" -eq 4 ] && [ "$bash_version_minor" -lt 3 ]; then elif [ "$bash_version_major" -eq 4 ] && [ "$bash_version_minor" -lt 3 ]; then
bash_too_old=true bash_too_old=true

Loading…
Cancel
Save