From 5c8651c7cd0961e40549afc29b8d745cd4a6174c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Feb 2022 14:59:03 +0530 Subject: [PATCH] bootstrap script should work even when stdout is redirected --- shell-integration/ssh/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index c10d732e8..6ea32f08c 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -8,7 +8,7 @@ cleanup_on_bootstrap_exit() { } die() { echo "$*" > /dev/stderr; cleanup_on_bootstrap_exit; exit 1; } -dsc_to_kitty() { printf "\033P@kitty-$1|%s\033\\" "$(printf "%s" "$2" | base64)"; } +dsc_to_kitty() { printf "\033P@kitty-$1|%s\033\\" "$(printf "%s" "$2" | base64)" > /dev/tty; } debug() { dsc_to_kitty "print" "debug $1"; } echo_via_kitty() { dsc_to_kitty "echo" "$1"; } saved_tty_settings=$(command stty -g)