Skip to content

Commit

Permalink
do_msvc_check: set default choice to no
Browse files Browse the repository at this point in the history
Before that the behavior on Windows when running rustup-init
without having build tools installed was to continue.

Now the user need to explicitly choose to continue installation,
and thus we are making sure they are carefully reading the warning
message.

Closes: #2514
  • Loading branch information
creekorful committed Oct 18, 2020
1 parent 1863453 commit 7d7a0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ pub fn install(
warn!("installing msvc toolchain without its prerequisites");
} else {
md(&mut term, MSVC_MESSAGE);
if !common::confirm("\nContinue? (Y/n)", true)? {
if !common::confirm("\nContinue? (y/N)", false)? {
info!("aborting installation");
return Ok(utils::ExitCode(0));
}
Expand Down

0 comments on commit 7d7a0bf

Please sign in to comment.