Function
upgradeFailure
(method: Method, result?: { code: number; stdout: string; stderr: string })
Source from the content-addressed store, hash-verified
| 131 | }) |
| 132 | |
| 133 | const upgradeFailure = (method: Method, result?: { code: number; stdout: string; stderr: string }) => { |
| 134 | if (method === "choco") return "not running from an elevated command shell" |
| 135 | if (result) return `Upgrade failed for ${method} (exit code ${result.code}).` |
| 136 | return `Upgrade failed for ${method}.` |
| 137 | } |
| 138 | |
| 139 | const upgradeScriptShell = Effect.fnUntraced(function* () { |
| 140 | const bashVersion = yield* text(["bash", "--version"]) |
Tested by
no test coverage detected