mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-17 20:46:46 -05:00
Fix occasional 'libexec/pyenv-latest: line 39: printf: write error: Broken pipe' (#2729)
This commit is contained in:
parent
c5d2639082
commit
fe76b05445
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ IFS=$'\n'
|
|||
DEFINITION_CANDIDATES=( $(python-build --definitions ) )
|
||||
fi
|
||||
|
||||
if printf '%s\n' "${DEFINITION_CANDIDATES[@]}" | grep -qxFe "$prefix"; then
|
||||
if printf '%s\n' "${DEFINITION_CANDIDATES[@]}" 2>/dev/null | grep -qxFe "$prefix"; then
|
||||
echo "$prefix"
|
||||
exit $exitcode;
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue