mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 22:03:52 -05:00
Simplify reference to realpath.dylib within rbenv-versions
The `../libexec` dance isn't necessary here. It was only necessary in main `rbenv` command because that one might have been pointed to directly via a symlink.
This commit is contained in:
@@ -27,7 +27,7 @@ done
|
|||||||
|
|
||||||
versions_dir="${RBENV_ROOT}/versions"
|
versions_dir="${RBENV_ROOT}/versions"
|
||||||
|
|
||||||
if ! enable -f "${BASH_SOURCE%/*}"/../libexec/rbenv-realpath.dylib realpath 2>/dev/null; then
|
if ! enable -f "${BASH_SOURCE%/*}"/rbenv-realpath.dylib realpath 2>/dev/null; then
|
||||||
if [ -n "$RBENV_NATIVE_EXT" ]; then
|
if [ -n "$RBENV_NATIVE_EXT" ]; then
|
||||||
echo "rbenv: failed to load \`realpath' builtin" >&2
|
echo "rbenv: failed to load \`realpath' builtin" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user