Commit ffc1638
fix(cli): handle permission errors when configuring shell PATH (#1040)
## Summary
resolve #1034
- Add write permission check in `install.sh` `add_bin_to_path`: exits
immediately with a clear error message when shell config files
(`.zshenv`, `.zshrc`, etc.) are not writable, instead of silently
failing and showing misleading success output
- Add `try/catch` around `SetEnvironmentVariable` in `install.ps1`
`Configure-UserPath`: exits with an actionable error message when PATH
update fails
---------
Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>1 parent 521ca87 commit ffc1638
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
0 commit comments