Skip to content

Commit 3179c35

Browse files
committed
fix(self-update): run do_update_programs_display_version() on run_update()
1 parent f826a2d commit 3179c35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cli/self_update/windows.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,12 @@ pub(crate) fn run_update(setup_path: &Path) -> Result<utils::ExitCode> {
593593
.spawn()
594594
.context("unable to run updater")?;
595595

596+
let Some(version) = super::get_and_parse_new_rustup_version(setup_path) else {
597+
warn!("failed to get the new rustup version in order to update `DisplayVersion`");
598+
return Ok(utils::ExitCode(1));
599+
};
600+
do_update_programs_display_version(&version)?;
601+
596602
Ok(utils::ExitCode(0))
597603
}
598604

0 commit comments

Comments
 (0)