Thread of 3 posts
jump to replies```
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 4d51fb076d..4f385ca852 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -119,6 +119,7 @@ fi
if [[ -n "${HOMEBREW_MACOS}" ]]
then
HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)"
+ HOMEBREW_MACOS_VERSION="26.5.1"
IFS=. read -r -a MACOS_VERSION_ARRAY < <(printf '%s' "${HOMEBREW_MACOS_VERSION}")
printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" "${MACOS_VERSION_ARRAY[@]}"
```
brew will annoyingly keep reverting this file. so after edit... run `brew update`, `cd /opt/homebrew && git stash pop && cd -`, then finally `brew upgrade`. probably wrap this in an alias or another script in `$HOME/bin`.
PS. I guess I don't know how to quote blocks of code on Mastodon? ugh.
4 replies
back to top@bryan Huh, don't know that I've gotten that error before, but yeah 🫠
@bryan "I forgot how annoying it can be to use brew,” there, I fixed it for you.
@nuthatch
Bah brew is fine. If it 💩 the 🛏️ you just blow it all away and re-brew!
