diff --git a/src/update.ts b/src/update.ts index a7acd325..43b4bf2a 100644 --- a/src/update.ts +++ b/src/update.ts @@ -416,7 +416,8 @@ const downloadAndExtract = async ( } const determineChannel = async ({config, version}: {config: Config; version?: string}): Promise => { - ux.action.status = `Determining channel for ${version}` + ux.action.status = version ? `Determining channel for ${version}` : 'Determining channel' + const channelPath = join(config.dataDir, 'channel') const channel = existsSync(channelPath) ? (await readFile(channelPath, 'utf8')).trim() : 'stable'