fix: forces root to be redirected locally

Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
This commit is contained in:
thiswillbeyourgithub 2022-02-27 15:23:18 +01:00 committed by Daniel Thompson
parent dbe489ce68
commit a76c2413fb

View file

@ -245,6 +245,9 @@ def check_rtc(c):
def handle_binary_download(c, tname, fname):
verbose = bool(c.logfile)
if tname.startswith("/"):
fname = "." + fname
c.run_command('import os')
stat = c.run_command(f'os.stat("{tname}")[6]')
if 'Error' in stat: