Fix default behavior of join

This commit is contained in:
Augusto Gunsch 2021-11-17 21:28:47 -03:00
parent d9c25e1b27
commit ef868d83bf
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = fsub name = fsub
version = 1.0.0 version = 1.0.1
author = Augusto Lenz Gunsch author = Augusto Lenz Gunsch
author_email = augustogunsch@tutanota.com author_email = augustogunsch@tutanota.com
description = CLI SubRip editor description = CLI SubRip editor

View File

@ -498,7 +498,8 @@ def run(args):
try: try:
file = parsed_files.pop(0) file = parsed_files.pop(0)
first += file first += file
file.delete() if args.replace:
file.delete()
except IndexError: except IndexError:
break break
parsed_files.append(first) parsed_files.append(first)