create: ignore empty paths, print warning, fixes #5637

This commit is contained in:
Thomas Waldmann 2023-04-07 17:04:00 +02:00
parent 09781e1d30
commit 7df6301144
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -132,6 +132,9 @@ class CreateMixIn:
return self.exit_code
else:
for path in args.paths:
if path == "": # issue #5637
self.print_warning("An empty string was given as PATH, ignoring.")
continue
if path == "-": # stdin
path = args.stdin_name
mode = args.stdin_mode