diff --git a/shell-integration/ssh/bootstrap.py b/shell-integration/ssh/bootstrap.py index ea902a7c2..73cabed6a 100644 --- a/shell-integration/ssh/bootstrap.py +++ b/shell-integration/ssh/bootstrap.py @@ -211,7 +211,10 @@ def get_data(): sys.stdout.write('\r\033[K') data = base64.standard_b64decode(data) with temporary_directory(dir=HOME, prefix='.kitty-ssh-kitten-untar-') as tdir, tarfile.open(fileobj=io.BytesIO(data)) as tf: - tf.extractall(tdir) + try: + tf.extractall(tdir, filter='data') + except TypeError: + tf.extractall(tdir) with open(tdir + '/data.sh') as f: env_vars = f.read() apply_env_vars(env_vars)