Enable special files to be declared as output file

This commit is contained in:
ByteDream 2023-04-09 11:24:12 +02:00
parent 7e34076a7b
commit d79f00871e
2 changed files with 4 additions and 3 deletions

View file

@ -110,7 +110,7 @@ impl Execute for Archive {
.unwrap_or_default()
.to_string_lossy()
!= "mkv"
&& !is_special_file(PathBuf::from(&self.output))
&& !is_special_file(&self.output)
&& self.output != "-"
{
bail!("File extension is not '.mkv'. Currently only matroska / '.mkv' files are supported")