瀏覽代碼
Strip -<suffix> when autodetecting shell (#377)
For example bash-5.1, bash-static.
pull/447/head
v1.2.0
Ville Skyttä
1 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
1 次插入 和
0 次删除
-
bin/pyenv-virtualenv-init
|
|
@ -45,6 +45,7 @@ if [ -z "$shell" ]; then |
|
|
|
shell="${shell%% *}" |
|
|
|
shell="${shell:-$SHELL}" |
|
|
|
shell="${shell##*/}" |
|
|
|
shell="${shell%%-*}" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -z "$print" ]; then |
|
|
|