From a76c2413fb1235286701500933b45be537741c49 Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub Date: Sun, 27 Feb 2022 15:23:18 +0100 Subject: fix: forces root to be redirected locally Signed-off-by: thiswillbeyourgithub diff --git a/tools/wasptool b/tools/wasptool index c2ecaba..72dfde9 100755 --- a/tools/wasptool +++ b/tools/wasptool @@ -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: -- cgit v0.10.2