leaf-dirs: fix spurious newline at the end of output

This commit is contained in:
Martin Sekera 2022-08-12 11:30:52 +02:00
parent 0348fb18d6
commit da8de63bca

View file

@ -38,4 +38,4 @@ if __name__ == "__main__":
random.shuffle(outdirs)
sep = "\0" if args.null else "\n"
print(sep.join(outdirs))
print(sep.join(outdirs), end="" if args.null else "\n")