From 72718cbab7535a424b667af1e252cdac260e215b Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 11 Mar 2022 15:42:45 +0800 Subject: [PATCH] Remove login shell name suffix restriction Some shells do not end with sh, consistent with the python bootstrap implementation. --- shell-integration/ssh/bootstrap.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index e4d0f6169..e0f3d8aa2 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -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 }