Skip to content

Instantly share code, notes, and snippets.

@comigor
Last active July 15, 2019 21:59
Show Gist options
  • Save comigor/1cd1c018bdf1990bd3605c95f07dee94 to your computer and use it in GitHub Desktop.
Save comigor/1cd1c018bdf1990bd3605c95f07dee94 to your computer and use it in GitHub Desktop.
Ignore homebrew updates and make it work with older XCode version
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index ba6592eba..fe6ef0c9a 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -432,6 +432,7 @@ update-preinstall-timer() {
}
update-preinstall() {
+ return
[[ -z "$HOMEBREW_HELP" ]] || return
[[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return
[[ -z "$HOMEBREW_AUTO_UPDATING" ]] || return
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index 32efc8639..1b48ea2b4 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -35,6 +35,7 @@ module OS
end
def below_minimum_version?
+ return false
return false unless installed?
version < minimum_version
@@ -261,6 +262,7 @@ module OS
end
def below_minimum_version?
+ return false
return false unless installed?
version < minimum_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment