aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-09-19 11:19:26 +0100
committerMike McQuaid2014-09-19 11:20:16 +0100
commit2349864926f9baad04a8614d81741bf36eba2c01 (patch)
treebcea8f8449adb25948e375eae8bbf2b607794cb9 /Library
parent590069d269de0d6b424e8107a0c6ce87f75f4171 (diff)
downloadhomebrew-2349864926f9baad04a8614d81741bf36eba2c01.tar.bz2
caveats: check if plist is a symlink.
Avoid problems like #32367.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/caveats.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb
index fa37c6289..d3e8928ff 100644
--- a/Library/Homebrew/caveats.rb
+++ b/Library/Homebrew/caveats.rb
@@ -88,7 +88,7 @@ class Caveats
# we readlink because this path probably doesn't exist since caveats
# occurs before the link step of installation
- if (not plist_path.file?) and (not plist_path.symlink?)
+ if !plist_path.file? || !plist_path.symlink?
if f.plist_startup
s << "To have launchd start #{f.name} at startup:"
s << " sudo mkdir -p #{destination}" unless destination_path.directory?