Ver código fonte

rbenv-init: do not use basename for $shell

This can be done using bash directly.
pull/487/head^2
Daniel Hahler 9 anos atrás
pai
commit
4ea7d0849b
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      libexec/rbenv-init

+ 2
- 1
libexec/rbenv-init Ver arquivo

@ -25,7 +25,8 @@ if [ -z "$shell" ]; then
shell="$(ps c -p "$PPID" -o 'ucomm=' 2>/dev/null || true)"
shell="${shell##-}"
shell="${shell%% *}"
shell="$(basename "${shell:-$SHELL}")"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
fi
root="${0%/*}/.."

Carregando…
Cancelar
Salvar