* Check if a binary needs a version upgrade.
(name: string)
| 142 | * Check if a binary needs a version upgrade. |
| 143 | */ |
| 144 | function needsUpgrade(name: string): boolean { |
| 145 | const def = REGISTRY[name] |
| 146 | if (!def) return false |
| 147 | const installed = readVersions()[name] |
| 148 | return installed !== def.version |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Prepend the managed bin directory to the system PATH. |
no test coverage detected