summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsigmaSd <bedisnbiba@gmail.com>2022-10-31 11:48:28 +0100
committerGitHub <noreply@github.com>2022-10-31 11:48:28 +0100
commitb07a753756377ebc37cb044d72b58120c1def1c4 (patch)
tree34f7e288a72214570bb4deb8775387f1792215d4
parentd76014192dbfd134794a6129e73f38645d7e6314 (diff)
fix(tools): show correct upgrade command for upgrading canary (#16486)
-rw-r--r--cli/tools/upgrade.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs
index a67883e10..1a2252d3d 100644
--- a/cli/tools/upgrade.rs
+++ b/cli/tools/upgrade.rs
@@ -180,6 +180,10 @@ pub fn check_for_upgrades(cache_dir: PathBuf) {
"{} ",
colors::green("A new canary release of Deno is available.")
);
+ eprintln!(
+ "{}",
+ colors::italic_gray("Run `deno upgrade --canary` to install it.")
+ );
} else {
eprint!(
"{} {} → {} ",
@@ -187,11 +191,11 @@ pub fn check_for_upgrades(cache_dir: PathBuf) {
colors::cyan(version::deno()),
colors::cyan(upgrade_version)
);
+ eprintln!(
+ "{}",
+ colors::italic_gray("Run `deno upgrade` to install it.")
+ );
}
- eprintln!(
- "{}",
- colors::italic_gray("Run `deno upgrade` to install it.")
- );
update_checker.store_prompted();
}