mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add a workaround for system executables in /bin
This commit is contained in:
parent
2485257424
commit
6030ea51e4
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ fi
|
||||||
if [ "$RBENV_VERSION" = "system" ]; then
|
if [ "$RBENV_VERSION" = "system" ]; then
|
||||||
if RUBY_PATH="$(rbenv-which ruby 2>/dev/null)"; then
|
if RUBY_PATH="$(rbenv-which ruby 2>/dev/null)"; then
|
||||||
RUBY_PATH="${RUBY_PATH%/*}"
|
RUBY_PATH="${RUBY_PATH%/*}"
|
||||||
echo "${RUBY_PATH%/bin}"
|
RBENV_PREFIX_PATH="${RUBY_PATH%/bin}"
|
||||||
|
echo "${RBENV_PREFIX_PATH:-/}"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "rbenv: system version not found in PATH" >&2
|
echo "rbenv: system version not found in PATH" >&2
|
||||||
|
|
Loading…
Reference in a new issue