Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix install command for bash

  • Loading branch information...
commit 5f89182ece03704e4cc0be78ae23fb513201f2ef 1 parent a5aaf0c
Neil Bakhle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cookbooks/homebrew/providers/homebrew.rb
View
2  cookbooks/homebrew/providers/homebrew.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.