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`.

4 replies

back to top