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 }