fix: forces root to be redirected locally
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
This commit is contained in:
parent
dbe489ce68
commit
a76c2413fb
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue