- Notifications
You must be signed in to change notification settings - Fork1.4k
Commited1a3a5
authored
Switch back to resolving symlinks for
Considerations:- `./libexec/rbenv` executable is the entrypoint to the program;- BASH_SOURCE might be the path to a symlink that has activated `./libexec/rbenv`;- We must resolve the symlink to learn where rbenv's libexec directory is;- It's not guaranteed that rbenv commands will always remain directly under their own "libexec" directory, since a package maintainer can change that, e.g. rbenv commands are sometimes placed into `/usr/libexec/rbenv/*`;- Resolving symlinks might fail and in that case we just assume rbenv project layout.rbenv
executable (#1439)1 parent22ee5d4 commited1a3a5
2 files changed
+29
-7
lines changedLines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
46 | 68 |
| |
47 | 69 |
| |
48 | 70 |
| |
49 |
| - | |
| 71 | + | |
50 | 72 |
| |
51 | 73 |
| |
52 |
| - | |
| 74 | + | |
53 | 75 |
| |
54 |
| - | |
| 76 | + | |
55 | 77 |
| |
56 | 78 |
| |
57 | 79 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
| 75 | + | |
76 | 76 |
|
0 commit comments
Comments
(0)