Explorar el Código

fix rbenv-which with system ruby

Don't have `command -v` abort the whole script prematurely.
pull/360/head^2
Roy Liu hace 14 años
cometido por Mislav Marohnić
padre
commit
99551dd1ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      libexec/rbenv-which

+ 1
- 1
libexec/rbenv-which Ver fichero

@ -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

Cargando…
Cancelar
Guardar