Skip to content

Commit

Permalink
fix: determine channel status message when no version is provided (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Jun 27, 2024
1 parent 6089a49 commit 3022b94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ const downloadAndExtract = async (
}

const determineChannel = async ({config, version}: {config: Config; version?: string}): Promise<string> => {
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'
Expand Down

0 comments on commit 3022b94

Please sign in to comment.