aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sleepwatcher.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/sleepwatcher.rb b/Library/Formula/sleepwatcher.rb
index e7cf6618d..713906f47 100644
--- a/Library/Formula/sleepwatcher.rb
+++ b/Library/Formula/sleepwatcher.rb
@@ -29,9 +29,13 @@ class Sleepwatcher < Formula
# Write the launchd scripts
inreplace Dir["config/*.plist"] do |s|
+ s.gsub! "/usr/local/sbin", HOMEBREW_PREFIX/'sbin'
+ end
+
+ inreplace 'config/de.bernhard-baehr.sleepwatcher-20compatibility.plist' do |s|
s.gsub! "/etc", (etc + 'sleepwatcher')
- s.gsub! "/usr/local/sbin", (HOMEBREW_PREFIX + 'sbin')
end
+
prefix.install Dir["config/*.plist"]
end