Commit 4c53c5d
authored
fix(installation): don't misdetect npm/pipx installs in ~/.local/bin as curl (#129)
method() returned 'curl' for anything under ~/.local/bin before the
package-manager probes ran. But ~/.local/bin is also the target for
npm --prefix ~/.local, pipx, and other managers — so a 'npm i -g' install
there was upgraded with the curl script (installing a second copy or
clobbering the npm-managed one). Defer the .local/bin heuristic: let the
package-manager probes claim it first, and only fall back to 'curl' when
none do. (#36)1 parent c5c2a15 commit 4c53c5d
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
0 commit comments