Skip to content

Commit

Permalink
Fix trailing percent sign in upgrade message (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachkirsch authored Dec 13, 2022
1 parent 7d04f13 commit 0608840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/cli/src/cli-context/CliContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ export class CliContext {
if (!this._suppressUpgradeMessage) {
const { isUpgradeAvailable, latestVersion } = await this.isUpgradeAvailable();
if (isUpgradeAvailable) {
const upgradeMessage = getFernCliUpgradeMessage({
let upgradeMessage = getFernCliUpgradeMessage({
toVersion: latestVersion,
cliEnvironment: this.environment,
});
if (!upgradeMessage.endsWith("\n")) {
upgradeMessage += "\n";
}
this.stream.write(upgradeMessage);
}
}
Expand Down

0 comments on commit 0608840

Please sign in to comment.