From 0608840aee2787d99f74eda55608f32bcb88906c Mon Sep 17 00:00:00 2001 From: Zach Kirsch Date: Mon, 12 Dec 2022 17:27:08 -0800 Subject: [PATCH] Fix trailing percent sign in upgrade message (#990) --- packages/cli/cli/src/cli-context/CliContext.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/cli/src/cli-context/CliContext.ts b/packages/cli/cli/src/cli-context/CliContext.ts index 8f5c4dc5ac2..5a6848a6e46 100644 --- a/packages/cli/cli/src/cli-context/CliContext.ts +++ b/packages/cli/cli/src/cli-context/CliContext.ts @@ -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); } }