From acf0483362ef15db55d1310fd1223694b839184f Mon Sep 17 00:00:00 2001 From: Gen Schmitt Date: Wed, 23 Jun 2021 13:50:06 -0400 Subject: [PATCH] Fixed bug in processing tar archives --- lib/extractor/extraction.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extractor/extraction.rb b/lib/extractor/extraction.rb index c2ac988..168782f 100644 --- a/lib/extractor/extraction.rb +++ b/lib/extractor/extraction.rb @@ -121,7 +121,7 @@ def extract_zip entry_path = valid_entry_path(entry.name) - if entry_path && !is_ds_store(entry_path) && !is_mac_thing(entry_path) + if entry_path && !is_ds_store(entry_path) && !is_mac_thing(entry_path) && !is_mac_tar_thing(entry_path) entry_paths << entry_path @@ -195,7 +195,7 @@ def extract_archive if entry_path - if !is_ds_store(entry_path) && !is_mac_thing(entry_path) + if !is_ds_store(entry_path) && !is_mac_thing(entry_path) && !is_mac_tar_thing(entry_path) entry_paths << entry_path if entry.directory? || is_directory(entry.pathname)