diff --git a/bin/ensure-config.sh b/bin/ensure-config.sh index 42419d1..c95a85f 100755 --- a/bin/ensure-config.sh +++ b/bin/ensure-config.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -( bash --version | grep -q 'version 4' ) || { +[ ${BASH_VERSINFO[0]:-0} -lt 4 ] && { echo "Bash too old, update to >=4.0" exit 1 }