diff options
| author | Reinhard Pointner | 2017-05-18 22:32:00 +0800 |
|---|---|---|
| committer | Reinhard Pointner | 2017-05-18 22:32:00 +0800 |
| commit | 6473a90c57412479666cecda1ef3546fde023641 (patch) | |
| tree | 718c5bc7a756169158b4307dc882f72159c17456 /Library | |
| parent | 5c59b3352f94711c2e7ea394074c72c726024ce7 (diff) | |
| download | brew-6473a90c57412479666cecda1ef3546fde023641.tar.bz2 | |
Extract to name without *.gpg extension
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/container/gpg.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/gpg.rb b/Library/Homebrew/cask/lib/hbc/container/gpg.rb index 311dabc25..8d5aaf184 100644 --- a/Library/Homebrew/cask/lib/hbc/container/gpg.rb +++ b/Library/Homebrew/cask/lib/hbc/container/gpg.rb @@ -6,7 +6,7 @@ module Hbc class Container class Gpg < Base def self.me?(criteria) - criteria.extension(/GPG|SIG/n) + criteria.extension(/gpg/n) end def import_key @@ -31,7 +31,7 @@ module Hbc import_key Dir.mktmpdir do |unpack_dir| - @command.run!(gpg, args: ["--batch", "--yes", "--output", Pathname(unpack_dir).join(File.basename(@path.basename)), "--decrypt", @path]) + @command.run!(gpg, args: ["--batch", "--yes", "--output", Pathname(unpack_dir).join(File.basename(@path.basename, ".gpg")), "--decrypt", @path]) extract_nested_inside(unpack_dir) end |
