aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorReinhard Pointner2017-05-19 04:24:36 +0800
committerReinhard Pointner2017-05-19 04:24:36 +0800
commit61db2a58a5232fe67b7f0850d1421af0d38fdb29 (patch)
treee2ec88e1df7e512d46d7a04ef29f211064ff287b /Library
parent6473a90c57412479666cecda1ef3546fde023641 (diff)
downloadbrew-61db2a58a5232fe67b7f0850d1421af0d38fdb29.tar.bz2
Exactly match extension "gpg"
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/container/gpg.rb4
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 8d5aaf184..3f37b5aa6 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/n)
+ criteria.extension(/^(gpg)$/)
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, ".gpg")), "--decrypt", @path])
+ @command.run!(gpg, args: ["--batch", "--yes", "--output", Pathname(unpack_dir).join(@path.basename(".gpg")), "--decrypt", @path])
extract_nested_inside(unpack_dir)
end