From 0e7f1d60d6109b4583de8236765be42d7853d6d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Mar 2022 11:45:14 +0530 Subject: [PATCH] Have bootstrap.sh preserve file permissions when untarring --- 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 fd492f863..9dfece145 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -126,7 +126,7 @@ untar_and_read_env() { tdir=$(command mktemp -d "$HOME/.kitty-ssh-kitten-untar-XXXXXXXXXXXX") [ $? = 0 ] || die "Creating temp directory failed" - read_n_bytes_from_tty "$1" | command base64 -d | command tar xjf - --no-same-owner -C "$tdir" + read_n_bytes_from_tty "$1" | command base64 -d | command tar xpjf - --no-same-owner -C "$tdir" data_file="$tdir/data.sh" [ -f "$data_file" ] && . "$data_file" data_dir="$HOME/$KITTY_SSH_KITTEN_DATA_DIR"