Skip to content

Commit

Permalink
Fixed bug in processing tar archives
Browse files Browse the repository at this point in the history
  • Loading branch information
genschmitt committed Jun 23, 2021
1 parent aba015c commit acf0483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extractor/extraction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit acf0483

Please sign in to comment.