Browse Source

Fix occasional 'libexec/pyenv-latest: line 39: printf: write error: Broken pipe' (#2729)

pull/2730/head
native-api 1 year ago
committed by GitHub
parent
commit
fe76b05445
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libexec/pyenv-latest

+ 1
- 1
libexec/pyenv-latest View File

@ -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…
Cancel
Save