Reduce bootstrap script length by removing comments and indents

dropbear has 9000 bytes limit on ssh arguments length.
This commit is contained in:
pagedown
2022-03-16 01:03:51 +08:00
parent 91a17e3f0c
commit 150bf1a5b0
3 changed files with 19 additions and 6 deletions

View File

@@ -274,7 +274,8 @@ exec_zsh_with_integration() {
export ZDOTDIR="$shell_integration_dir/zsh"
exec "$login_shell" "-l"
fi
unset KITTY_ORIG_ZDOTDIR # ensure this is not propagated
# ensure this is not propagated
unset KITTY_ORIG_ZDOTDIR
}
exec_fish_with_integration() {
@@ -313,8 +314,10 @@ exec_with_shell_integration() {
}
execute_sh_with_posix_env() {
[ "$shell_name" = "sh" ] || return # only for sh as that is likely to be POSIX compliant
command "$login_shell" -l -c ":" > /dev/null 2> /dev/null && return # sh supports -l so use that
# only for sh as that is likely to be POSIX compliant
[ "$shell_name" = "sh" ] || return
# sh supports -l so use that
command "$login_shell" -l -c ":" > /dev/null 2> /dev/null && return
[ -z "$shell_integration_dir" ] && die "Could not read data over tty ssh kitten cannot function"
sh_dir="$shell_integration_dir/sh"
command mkdir -p "$sh_dir" || die "Creating $sh_dir failed"