Selaa lähdekoodia

Tweak sanitizing shell name

Handles situation when the output is `/bin/shell- args...`. First strip
away the arguments, then the trailing dash.
pull/653/head^2
Mislav Marohnić 10 vuotta sitten
vanhempi
commit
a9a9636d1e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      libexec/rbenv-init

+ 1
- 1
libexec/rbenv-init Näytä tiedosto

@ -34,8 +34,8 @@ done
shell="$1"
if [ -z "$shell" ]; then
shell="$(ps -p "$PPID" -o 'args=' 2>/dev/null || true)"
shell="${shell##-}"
shell="${shell%% *}"
shell="${shell##-}"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
fi

Ladataan…
Peruuta
Tallenna