1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Support for BusyBox version of `head' (#2629)

This commit is contained in:
Florian Schüller
2023-02-22 18:11:48 +01:00
committed by GitHub
parent 86a4423bbb
commit 68918e69b7
9 changed files with 14 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ if ! enable -f "${BASH_SOURCE%/*}"/pyenv-realpath.dylib realpath 2>/dev/null; th
echo "pyenv: failed to load \`realpath' builtin" >&2
exit 1
fi
READLINK=$(type -P greadlink readlink | head -1)
READLINK=$(type -P greadlink readlink | head -n1)
if [ -z "$READLINK" ]; then
echo "pyenv: cannot find readlink - are you missing GNU coreutils?" >&2
exit 1