Skip to content

Commit

Permalink
hide unload when the file isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Dec 6, 2011
1 parent 55b5bc7 commit 2bc0e84
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 @@ -53,7 +53,7 @@ def load_plist_for(name)
Chef::Log.info("Configuring #{name} to automatically start on login")
destination_plist = "#{ENV['HOME']}/Library/LaunchAgents/#{plist_for(name)}"
system("mkdir -p #{ENV['HOME']}/Library/LaunchAgents")
system("launchctl unload -w -F #{destination_plist}")
system("launchctl unload -w -F #{destination_plist} > /dev/null 2>&1")
system("cp -f #{plist_fullpath_for(name)} #{destination_plist}")
system("launchctl load -w -F #{destination_plist}")
end
Expand Down

0 comments on commit 2bc0e84

Please sign in to comment.