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
|
# 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…
x
Reference in New Issue
Block a user