mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-22 03:57:30 +03:00
Remove login shell name suffix restriction
Some shells do not end with sh, consistent with the python bootstrap implementation.
This commit is contained in:
parent
ea28951e0e
commit
72718cbab7
@ -275,10 +275,7 @@ if [ "$tty_ok" = "y" ]; then
|
||||
fi
|
||||
|
||||
login_shell_is_ok() {
|
||||
if [ -z "$login_shell" -o ! -x "$login_shell" ]; then return 1; fi
|
||||
case "$login_shell" in
|
||||
*sh) return 0;
|
||||
esac
|
||||
if [ -n "$login_shell" -a -x "$login_shell" ]; then return 0; fi
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user