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