Move stdin read line

This commit is contained in:
George Lacey 2021-05-07 11:00:21 +01:00
parent 1ccffecc37
commit b8b0af344d

View File

@ -25,7 +25,6 @@ def main(args, path: Path, log: Log):
else: else:
sleep(1) sleep(1)
log.debug("reading from stdin") log.debug("reading from stdin")
print(stdin.readline())
borg_output = " ".join(stdin.readlines()) borg_output = " ".join(stdin.readlines())
log.debug(f"stdin output: {borg_output}") log.debug(f"stdin output: {borg_output}")
if args.label is None: if args.label is None:
@ -51,6 +50,7 @@ def get_args():
if __name__ == "__main__": if __name__ == "__main__":
print(stdin.readline())
m_args = get_args() m_args = get_args()
m_path = Path(realpath(__file__)).parent.parent m_path = Path(realpath(__file__)).parent.parent
m_log = Log(LEVEL_DEBUG) m_log = Log(LEVEL_DEBUG)