From c2b8e871db8477d4ff1396156d7794d50565f7cc Mon Sep 17 00:00:00 2001 From: Matthew Lewinski Date: Sat, 4 Feb 2012 08:57:53 -0600 Subject: Minor cleanup on plist caveats. Use basename to refer to plist file when loaded. Make cp lines same across formulas. Signed-off-by: Adam Vandenberg --- Library/Formula/jenkins.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/jenkins.rb') diff --git a/Library/Formula/jenkins.rb b/Library/Formula/jenkins.rb index e6af417cf..7c9f5e0b1 100644 --- a/Library/Formula/jenkins.rb +++ b/Library/Formula/jenkins.rb @@ -20,7 +20,7 @@ If this is your first install, automatically load on login with: cp #{plist_path} ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} -If this is an upgrade and you already have the #{plist_path} loaded: +If this is an upgrade and you already have the #{plist_path.basename} loaded: launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename} cp #{plist_path} ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} -- cgit v1.2.3