Skip to content

Commit

Permalink
fix(core): read the correct property for the new CLI version (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Mar 26, 2019
1 parent 9998866 commit e5b7e36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ export class UpdateCommand extends BaseCommand {
}

private async performUpdate(flags: CommandFlags, state: Record<string, any>): Promise<void> {
cli.action.start(`Updating from ${state.currentVersion} to ${state.newVersion}`);
cli.action.start(`Updating from ${state.currentVersion} to ${state.updateVersion}`);

await installFromChannel(state.name, state.newVersion);
await installFromChannel(state.name, state.updateVersion);

cli.action.stop();

removeSync(state.cache);

this.warn(`Version ${state.newVersion} has been installed.`);
this.warn(`Version ${state.updateVersion} has been installed.`);

if (this.hasRestartFlag(flags)) {
if (flags.restart) {
Expand Down

0 comments on commit e5b7e36

Please sign in to comment.