()
| 112 | ) |
| 113 | |
| 114 | async function getBrewFormula() { |
| 115 | const tapFormula = await $`brew list --formula sst/tap/arctic`.throws(false).text() |
| 116 | if (tapFormula.includes("arctic")) return "sst/tap/arctic" |
| 117 | const coreFormula = await $`brew list --formula arctic`.throws(false).text() |
| 118 | if (coreFormula.includes("arctic")) return "arctic" |
| 119 | return "arctic" |
| 120 | } |
| 121 | |
| 122 | export async function upgrade(method: Method, target: string) { |
| 123 | let cmd |