mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
Merge pull request #361 from figsoda/mime
make mime sniffing consistent for list and decompress
This commit is contained in:
commit
e78fee0d48
@ -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