mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
libexec/rbenv-version: get rid of misleading "set by $(rbenv-version-origin)" message when system ruby is in use
This commit is contained in:
parent
c46a970595
commit
dd86f543fc
1 changed files with 6 additions and 1 deletions
|
@ -8,4 +8,9 @@
|
|||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
echo "$(rbenv-version-name) (set by $(rbenv-version-origin))"
|
||||
RBENV_VERSION_FILE="$(rbenv-version-origin)"
|
||||
if [ -e "$RBENV_VERSION_FILE" ]; then
|
||||
echo "$(rbenv-version-name) (set by $RBENV_VERSION_FILE)"
|
||||
else
|
||||
echo "$(rbenv-version-name)"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue