Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Only attempt to upgrade brews if they are outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Berk Güder and Charles Hansen committed Mar 4, 2013
1 parent 7c7d119 commit 99dc144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definitions/brew.rb
Expand Up @@ -39,7 +39,7 @@
end
when :upgrade
execute "brew upgrade #{package}" do
only_if params[:only_if] || "brew list | grep #{package}"
only_if params[:only_if] || "brew outdated | grep #{package}"
not_if params[:not_if] if params[:not_if]
user params[:user] || WS_USER
command "brew upgrade #{package}"
Expand Down

0 comments on commit 99dc144

Please sign in to comment.