mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-10 07:36:16 -04:00
declare -ar causes "readonly variable" error in Bash 3.2
Fixes https://github.com/pyenv/pyenv/issues/2278
This commit is contained in:
parent
a43631d7c0
commit
bfe54c9459
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue