Przeglądaj źródła
Strip -<suffix> when autodetecting shell (#377)
For example bash-5.1, bash-static.
pull/447/head
v1.2.0
Ville Skyttä
1 rok temu
committed by
GitHub
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z
1 dodań i
0 usunięć
-
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 |
|
|
|