Merge pull request #1449 from rbenv/libexec-vs-bin

Avoid assuming rbenv original project layout
This commit is contained in:
Mislav Marohnić 2022-10-09 14:48:53 +02:00 committed by GitHub
commit 172a79e993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,8 +45,7 @@ rbenv_path() {
echo "$PWD/${found#./}"
else
# Assume rbenv isn't in PATH.
local here="${BASH_SOURCE%/*}"
echo "${here%/*}/bin/rbenv"
echo "${BASH_SOURCE%/*}/rbenv"
fi
}