mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 13:03:46 -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:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user