Commit 35e523e
committed
fix(cli): add cross-platform support for critical system directory protection
- Create safe-paths utility with platform-specific critical path detection
- Support Windows (C:\, C:\Windows, C:\Program Files, etc)
- Support macOS (/, /System, /Library, /Applications, etc)
- Support Linux (/, /usr, /etc, /var, /root, etc)
- Refactor install and update commands to use new utility
- Add comprehensive test suite (11 tests covering all platforms)
Fixes: POSIX path handling that failed on Windows1 parent 342154a commit 35e523e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments