Selaa lähdekoodia

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

Fixes https://github.com/pyenv/pyenv/issues/2278
pull/2292/head
Ivan Pozdeev 4 vuotta sitten
vanhempi
commit
bfe54c9459
4 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. +1
    -1
      plugins/python-build/share/python-build/pypy2.7-7.3.8
  2. +1
    -1
      plugins/python-build/share/python-build/pypy3.7-7.3.8
  3. +1
    -1
      plugins/python-build/share/python-build/pypy3.8-7.3.8
  4. +1
    -1
      plugins/python-build/share/python-build/pypy3.9-7.3.8

+ 1
- 1
plugins/python-build/share/python-build/pypy2.7-7.3.8 Näytä tiedosto

@ -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'

+ 1
- 1
plugins/python-build/share/python-build/pypy3.7-7.3.8 Näytä tiedosto

@ -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'

+ 1
- 1
plugins/python-build/share/python-build/pypy3.8-7.3.8 Näytä tiedosto

@ -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'

+ 1
- 1
plugins/python-build/share/python-build/pypy3.9-7.3.8 Näytä tiedosto

@ -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'

Ladataan…
Peruuta
Tallenna