Skip to content

Commit

Permalink
declare -ar causes "readonly variable" error in Bash 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
native-api committed Mar 18, 2022
1 parent a43631d commit bfe54c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/python-build/share/python-build/pypy2.7-7.3.8
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion plugins/python-build/share/python-build/pypy3.7-7.3.8
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion plugins/python-build/share/python-build/pypy3.8-7.3.8
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion plugins/python-build/share/python-build/pypy3.9-7.3.8
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit bfe54c9

Please sign in to comment.