Skip to content

Commit

Permalink
fix install command for bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Bakhle authored and Neil Bakhle committed Oct 12, 2011
1 parent a5aaf0c commit 5f89182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/homebrew/providers/homebrew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def load_current_resource
end

def install_package(name, version)
run_brew_command("if [ brew info #{name} | grep -q \"Not installed\" -eq 0 ]; then /usr/bin/env HOMEBREW_TEMP=#{PREFIX}/tmp #{HOMEBREW} install #{name}; fi")
run_brew_command("brew info #{name} | grep -q \"Not installed\"; if [ $? -eq 0 ]; then /usr/bin/env HOMEBREW_TEMP=#{PREFIX}/tmp #{HOMEBREW} install #{name}; fi")
end

def remove_package(name, version)
Expand Down

0 comments on commit 5f89182

Please sign in to comment.