declare -ar causes "readonly variable" error in Bash 3.2

Fixes https://github.com/pyenv/pyenv/issues/2278
This commit is contained in:
Ivan Pozdeev 2022-03-18 07:39:44 +03:00
parent a43631d7c0
commit bfe54c9459
4 changed files with 4 additions and 4 deletions

View file

@ -75,7 +75,7 @@ function pypy_pkg_data {
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -75,7 +75,7 @@ function pypy_pkg_data {
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -75,7 +75,7 @@ function pypy_pkg_data {
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -75,7 +75,7 @@ function pypy_pkg_data {
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'