mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-29 13:15:42 +01:00
Merge pull request #731 from blueyed/init-no-basename-for-shell
rbenv-init: do not use basename for $shell
This commit is contained in:
commit
c43928a8e4
1 changed files with 2 additions and 1 deletions
|
@ -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%/*}/.."
|
||||
|
|
Loading…
Reference in a new issue