aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-06-10 00:34:17 +0100
committerDominyk Tiller2015-06-14 18:38:55 +0100
commit778c25b4589d731e58dc4caa1f51f75c1a5e77b8 (patch)
treeb08702409202159f195f159256036dbc6a1501f0 /Library
parent90c8b82d382e71c95419d417ff9099dd186133b8 (diff)
downloadbrew-778c25b4589d731e58dc4caa1f51f75c1a5e77b8.tar.bz2
brew: warn about 10.11 unsupported
Issue a warning about Homebrew's very basic support for 10.11 at this point in time on each run of `brew`. Closes Homebrew/homebrew#40536. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 8b8376422..1441f347b 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -50,6 +50,15 @@ if OS.mac? and MacOS.version < "10.6"
EOABORT
end
+if OS.mac? && MacOS.version == "10.11"
+ opoo <<-EOS.undent
+ Although Homebrew has added initial recognition of 10.11, it is unsupported.
+ You may encounter breakage or other failure and there is no guarantee
+ Homebrew can resolve those issues until El Capitan is stable.
+
+ EOS
+end
+
# Many Pathname operations use getwd when they shouldn't, and then throw
# odd exceptions. Reduce our support burden by showing a user-friendly error.
Dir.getwd rescue abort "The current working directory doesn't exist, cannot proceed."