This commit is contained in:
Truman Kilen 2023-02-16 12:14:57 -06:00
parent 8d46fde79e
commit d3d0b23a31

View file

@ -184,8 +184,7 @@ fn unpack(args: ActionUnpack) -> Result<(), repak::Error> {
|| (File::open(&args.input), includes.clone()), || (File::open(&args.input), includes.clone()),
|(file, includes), path| -> Result<(), repak::Error> { |(file, includes), path| -> Result<(), repak::Error> {
let full_path = mount_point.join(&path); let full_path = mount_point.join(&path);
if !includes.is_empty() && includes.iter().find(|i| full_path.starts_with(i)).is_none() if !includes.is_empty() && !includes.iter().any(|i| full_path.starts_with(i)) {
{
return Ok(()); return Ok(());
} }
if args.verbose { if args.verbose {