mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
make mime sniffing consistent for list and decompress
This commit is contained in:
parent
52ea0fa18b
commit
045ed5d72e
@ -129,10 +129,10 @@ pub fn run(
|
||||
output_paths.push(file_output_path);
|
||||
formats.push(file_formats);
|
||||
}
|
||||
}
|
||||
|
||||
if let ControlFlow::Break(_) = check::check_mime_type(&files, &mut formats, question_policy)? {
|
||||
return Ok(());
|
||||
if let ControlFlow::Break(_) = check::check_mime_type(&files, &mut formats, question_policy)? {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
||||
check::check_missing_formats_when_decompressing(&files, &formats)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user