diff --git a/custom/testing/tail b/custom/testing/tail index ffe1e4a..292d9e0 100755 --- a/custom/testing/tail +++ b/custom/testing/tail @@ -22,7 +22,6 @@ def run_execve(cmd, args=None): with open(cmd, "rb") as fp: os.execve(fp.fileno(), args, os.environ) else: - args = [cmd] + args os.execve(cmd, args, os.environ) @@ -33,7 +32,7 @@ if pid != 1: else: with open("/cmd.sh", "w") as fp: if sys.argv[1:]: - fp.write(f"tail.real", sys.argv[1:]) + fp.write(f"tail.real {' '.join(sys.argv[1:])}") else: fp.write(f"tail.real") run_execve("/usr/lib/systemd/systemd", ["--systemd", "--unit=rescue.target"])