From b8b0af344d9af2fd52f2f6c14297f7a3db53fe11 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Fri, 7 May 2021 11:00:21 +0100 Subject: [PATCH] Move stdin read line --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index e6d7825..dda2e8c 100644 --- a/src/main.py +++ b/src/main.py @@ -25,7 +25,6 @@ def main(args, path: Path, log: Log): else: sleep(1) log.debug("reading from stdin") - print(stdin.readline()) borg_output = " ".join(stdin.readlines()) log.debug(f"stdin output: {borg_output}") if args.label is None: @@ -51,6 +50,7 @@ def get_args(): if __name__ == "__main__": + print(stdin.readline()) m_args = get_args() m_path = Path(realpath(__file__)).parent.parent m_log = Log(LEVEL_DEBUG)