diff --git a/scripts/check_prerequisites.sh b/scripts/check_prerequisites.sh index 20b39b26a93..a0f4cb61583 100755 --- a/scripts/check_prerequisites.sh +++ b/scripts/check_prerequisites.sh @@ -12,6 +12,16 @@ set -eu +set +e +declare -A test_map +res=$? +if [[ $res -ne 0 ]]; then + echo "✗ ERROR: declare -A is not supported. Do you have bash version 4.0 or higher installed?" + exit 2 +fi +set -e + + declare -A python python["name"]="Python" python["version_command"]="python --version 2>&1 | awk '{print \$2}'"