mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
fix(prerequisite): add check for bash version (#15103)
This commit is contained in:
parent
be0a9c86b3
commit
c9aa6aa1ea
@ -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}'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user