mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
parent
e3239fdcdf
commit
ecc44dffeb
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue