Commit 3a37ad7
Fix install.sh error when cwd equals INSTALL_DIR (#10)
## Summary
- Fix `mv: 'binary' and 'target/binary' are the same file` error during
first-time install
- When strawhub runs `install.sh`, it sets cwd to the package directory
(same as `INSTALL_DIR`). The `mv` fails because source and destination
are the same file.
- Skip the `mv` when both paths resolve to the same absolute path
## Test plan
- [ ] Fresh install via `strawhub install` no longer shows the error
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b88a085 commit 3a37ad7
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
0 commit comments