Skip to content

Commit

Permalink
fix(prerequisite): add check for bash version (#15103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushi30 authored Feb 9, 2024
1 parent be0a9c8 commit c9aa6aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/check_prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"
Expand Down

0 comments on commit c9aa6aa

Please sign in to comment.