mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
fix(tools): show correct upgrade command for upgrading canary (#16486)
This commit is contained in:
parent
d76014192d
commit
b07a753756
1 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue