Commit 7420faf
fix: use cd -P to resolve symlinks to physical directory
The previous approach resolved the symlink path but didn't follow
it to the physical directory. On Homebrew:
- Symlink: /opt/homebrew/bin/axon → ../Cellar/axon/0.1.4/libexec/axon
- We were getting: /opt/homebrew/Cellar/axon/0.1.4/bin/axon (wrong!)
- We needed: /opt/homebrew/Cellar/axon/0.1.4/libexec/axon (correct!)
Now using 'cd -P' which follows symlinks to physical directories.
This is a standard Bash pattern for resolving script locations.
Fixes Homebrew installation on macOS where lib files are in libexec/
not bin/.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a7a40d5 commit 7420faf
2 files changed
+10
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
| |||
0 commit comments