slides-alpha: Fix single file mode arg processing

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2023-03-02 20:40:32 +01:00
parent df86ac515d
commit 19496a7183
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ def main():
elif opts.input.is_file():
# Single file
if p.exists():
if not p.is_file():
if opts.output.exists():
if not opts.output.is_file():
raise RuntimeError("Output path already exists and is not a file")
elif not opts.force:
raise RuntimeError("Output path already exists")