aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/gpg.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/gpg.rb b/Library/Homebrew/gpg.rb
index cb9e367df..3b7c4f726 100644
--- a/Library/Homebrew/gpg.rb
+++ b/Library/Homebrew/gpg.rb
@@ -7,8 +7,8 @@ class Gpg
next unless gpg_short_version
gpg_version = Version.create(gpg_short_version.to_s)
@version = gpg_version
- gpg_version == Version.create("2.0") ||
- gpg_version == Version.create("2.1")
+ gpg_version == Version.create("2.1") ||
+ gpg_version == Version.create("2.0")
end
end
@@ -20,7 +20,7 @@ class Gpg
find_gpg("gpg2")
end
- GPG_EXECUTABLE = gpg2 || gpg
+ GPG_EXECUTABLE = gpg || gpg2
def self.available?
File.executable?(GPG_EXECUTABLE.to_s)