Browse files

Revert "we only want the version for the folder"

This reverts commit 55b5bc7.
  • Loading branch information...
1 parent 2bc0e84 commit 9ccf0c45d5bc7cb3bb0f489285bf0473a313d04f @atmos atmos committed Dec 6, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 cookbooks/homebrew/providers/homebrew.rb
View
3 cookbooks/homebrew/providers/homebrew.rb
@@ -9,8 +9,7 @@ class Homebrew < ::Chef::Provider::Package
HOMEBREW = "#{PREFIX}/bin/brew"
def latest_version_for(name)
- path = %x{#{HOMEBREW} info #{name}| grep files | head -n1 | awk '{print $1}'}.chomp
- path.split('/').last
+ %x{#{HOMEBREW} info #{name}| grep files | head -n1 | awk '{print $1}'}.chomp
end
def load_current_resource

0 comments on commit 9ccf0c4

Please sign in to comment.