mirror of
https://github.com/pyenv/pyenv.git
synced 2026-10-04 00:11:06 +09:00
Fix "broken pipe" in pyenv-binary-install
This commit is contained in:
parent
07171d013c
commit
f217e6c6cf
@ -100,8 +100,8 @@ if [ -z "$entry" ]; then
|
||||
echo "pyenv-binary: no binary available for $requested on $os/$arch" >&2
|
||||
exit 1
|
||||
fi
|
||||
definitions="$(pyenv-install --list --bare)" || definitions=""
|
||||
if printf '%s\n' "$definitions" | grep -qxF -- "$entry"; then
|
||||
definitions="$(pyenv-install --list --bare)"
|
||||
if grep -qxF -- "$entry" <<<"$definitions"; then
|
||||
pyenv-install "$entry:$version"
|
||||
exit
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user