Skip to content

Instantly share code, notes, and snippets.

@zsprackett
Created June 21, 2016 23:20
Show Gist options
  • Save zsprackett/7d7051eb68468bc9ee4c63c4f042c65e to your computer and use it in GitHub Desktop.
Save zsprackett/7d7051eb68468bc9ee4c63c4f042c65e to your computer and use it in GitHub Desktop.
diff --git a/lib/hbc/container/zip.rb b/lib/hbc/container/zip.rb
index 5425d7f..2d59064 100644
--- a/lib/hbc/container/zip.rb
+++ b/lib/hbc/container/zip.rb
@@ -1,6 +1,6 @@
class Hbc::Container::Zip < Hbc::Container::Base
def self.me?(criteria)
- criteria.file.include? 'compressed-encoding=application/zip;'
+ criteria.file.include? 'compressed-encoding=application/zip;' or 'application/zip; charset=binary'
end
def extract
@vknabel
Copy link

vknabel commented Jul 13, 2016

@salimane You need to apply the changes to /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/container/zip.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment