mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
fix rbenv-which with system ruby
Don't have `command -v` abort the whole script prematurely.
This commit is contained in:
parent
b5a26936e8
commit
99551dd1ec
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ fi
|
||||||
|
|
||||||
if [ "$RBENV_VERSION" = "system" ]; then
|
if [ "$RBENV_VERSION" = "system" ]; then
|
||||||
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
|
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
|
||||||
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")"
|
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND" || true)"
|
||||||
else
|
else
|
||||||
RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}"
|
RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue