Commit 60a9237
authored
fix(update): refuse to update Homebrew-managed binary (#6)
Detects /Cellar/ or /homebrew/ in current_exe() path and aborts with
a message directing user to 'brew upgrade wshm'. Prevents breaking the
Cellar structure and Homebrew metadata.
Also warns for /usr/bin/ paths which may be managed by apt/dnf/rpm.
Same pattern as rtk-ai/icm#105.1 parent e11dc1c commit 60a9237
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
233 | 249 | | |
234 | 250 | | |
235 | 251 | | |
| |||
0 commit comments