diff options
| author | Jack Nagel | 2013-03-11 12:39:50 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-11 12:40:20 -0500 |
| commit | a30ea497e827a84ceb4df523a96865de0232be4c (patch) | |
| tree | 2b2ef4a192012fa4f322dbf5ccaa0c8e92010cc4 /Library/Formula | |
| parent | 631d4bb01faa546bb4e3d1f5a2fd50f7547d353f (diff) | |
| download | homebrew-a30ea497e827a84ceb4df523a96865de0232be4c.tar.bz2 | |
sleepwatcher: fix inreplace warning
Fixes #18389.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sleepwatcher.rb | 6 |
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 |
