fix(prerequisite): add check for bash version (#15103)

This commit is contained in:
Imri Paran 2024-02-09 11:29:20 +01:00 committed by GitHub
parent be0a9c86b3
commit c9aa6aa1ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}'"