mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05: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
4 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ function pypy_pkg_data {
|
||||||
}
|
}
|
||||||
|
|
||||||
# determine command, package directory, url+hash
|
# 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
|
# install
|
||||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
${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
|
# 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
|
# install
|
||||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
${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
|
# 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
|
# install
|
||||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
${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
|
# 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
|
# install
|
||||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
||||||
|
|
Loading…
Reference in a new issue