fix: forces root to be redirected locally
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
This commit is contained in:
parent
dbe489ce68
commit
a76c2413fb
|
@ -245,6 +245,9 @@ def check_rtc(c):
|
||||||
def handle_binary_download(c, tname, fname):
|
def handle_binary_download(c, tname, fname):
|
||||||
verbose = bool(c.logfile)
|
verbose = bool(c.logfile)
|
||||||
|
|
||||||
|
if tname.startswith("/"):
|
||||||
|
fname = "." + fname
|
||||||
|
|
||||||
c.run_command('import os')
|
c.run_command('import os')
|
||||||
stat = c.run_command(f'os.stat("{tname}")[6]')
|
stat = c.run_command(f'os.stat("{tname}")[6]')
|
||||||
if 'Error' in stat:
|
if 'Error' in stat:
|
||||||
|
|
Loading…
Reference in a new issue