From 3c31e29d5c46720ed51b7a75a863e2ff4577439f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Sep 2016 10:56:26 -0700 Subject: [PATCH] Simplify accessibility access disable warnings --- Library/Homebrew/cask/lib/hbc/installer.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb index 7c1006b8aa..e3e83eff20 100644 --- a/Library/Homebrew/cask/lib/hbc/installer.rb +++ b/Library/Homebrew/cask/lib/hbc/installer.rb @@ -253,12 +253,7 @@ class Hbc::Installer def disable_accessibility_access return unless @cask.accessibility_access - if MacOS.version <= :mountain_lion - opoo <<-EOS.undent - Accessibility access was enabled for #{@cask}, but it is not safe to disable - automatically on this version of macOS. See System Preferences. - EOS - elsif MacOS.version <= :el_capitan + if MacOS.version >= :mavericks && MacOS.version <= :el_capitan ohai "Disabling accessibility access" @command.run!("/usr/bin/sqlite3", args: [