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
|
# tarfile is only put into place after it has been fully written to disk
|
||||||
tdir=$(command mktemp -d "$HOME/.kitty-ssh-kitten-untar-XXXXXXXXXXXX")
|
tdir=$(command mktemp -d "$HOME/.kitty-ssh-kitten-untar-XXXXXXXXXXXX")
|
||||||
[ $? = 0 ] || die "Creating temp directory failed"
|
[ $? = 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"
|
data_file="$tdir/data.sh"
|
||||||
[ -f "$data_file" ] && . "$data_file"
|
[ -f "$data_file" ] && . "$data_file"
|
||||||
[ -z "$KITTY_SSH_KITTEN_DATA_DIR" ] && die "Failed to read SSH data from tty"
|
[ -z "$KITTY_SSH_KITTEN_DATA_DIR" ] && die "Failed to read SSH data from tty"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user