diff --git a/libexec/rbenv-which b/libexec/rbenv-which index c4966c7a..204988b2 100755 --- a/libexec/rbenv-which +++ b/libexec/rbenv-which @@ -50,7 +50,7 @@ fi if [ "$RBENV_VERSION" = "system" ]; then PATH="$(remove_from_path "${RBENV_ROOT}/shims")" - RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")" + RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND" || true)" else RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}" fi