Commit 23c40bd
feat(update): execute brew upgrade directly for Homebrew installs
Instead of printing instructions and returning, run_update() now shells
out to `brew upgrade <formula>` when a Homebrew install is detected.
brew is located by checking common install paths (/opt/homebrew/bin,
/usr/local/bin) before falling back to PATH. If brew is not found or
the upgrade fails, falls back to printing the manual command.
On success, busts the update-available cache so the notice clears on
the next run, matching the behaviour of the non-Homebrew upgrade path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e2e151d commit 23c40bd
1 file changed
Lines changed: 66 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
167 | 232 | | |
168 | 233 | | |
169 | 234 | | |
170 | 235 | | |
171 | | - | |
172 | | - | |
| 236 | + | |
173 | 237 | | |
174 | 238 | | |
175 | 239 | | |
| |||
0 commit comments