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
|
fi
|
||||||
|
|
||||||
login_shell_is_ok() {
|
login_shell_is_ok() {
|
||||||
if [ -z "$login_shell" -o ! -x "$login_shell" ]; then return 1; fi
|
if [ -n "$login_shell" -a -x "$login_shell" ]; then return 0; fi
|
||||||
case "$login_shell" in
|
|
||||||
*sh) return 0;
|
|
||||||
esac
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user