aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_pin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_pin.rb b/Library/Homebrew/formula_pin.rb
index 842d108c2..9a9aa4ced 100644
--- a/Library/Homebrew/formula_pin.rb
+++ b/Library/Homebrew/formula_pin.rb
@@ -18,7 +18,7 @@ class FormulaPin
end
def pin
- pin_at(@f.rack.subdirs.map { |d| Keg.new(d).version }.first)
+ pin_at(@f.rack.subdirs.map { |d| Keg.new(d).version }.max)
end
def unpin