mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-22 03:57:30 +03:00
Suppress STDERR for tar
This commit is contained in:
parent
8f77cc65e2
commit
2780630a18
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user