From 2780630a18fd60f9525927412713203e475ab479 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 10:28:14 +0530 Subject: [PATCH] Suppress STDERR for tar --- shell-integration/ssh/bootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index 505efc0a9..9aa719a4a 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -121,7 +121,8 @@ untar_and_read_env() { # tarfile is only put into place after it has been fully written to disk tdir=$(command mktemp -d "$HOME/.kitty-ssh-kitten-untar-XXXXXXXXXXXX") [ $? = 0 ] || die "Creating temp directory failed" - read_base64_from_tty | base64_decode | command tar "xpzf" "-" "-C" "$tdir" + # suppress STDERR for tar as tar prints various warnings if for instance, timestamps are in the future + read_base64_from_tty | base64_decode | command tar "xpzf" "-" "-C" "$tdir" 2> /dev/null data_file="$tdir/data.sh" [ -f "$data_file" ] && . "$data_file" [ -z "$KITTY_SSH_KITTEN_DATA_DIR" ] && die "Failed to read SSH data from tty"