Skip to content

Commit

Permalink
fixes prompt asking for msvc even though -y is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Deuster committed May 17, 2017
1 parent a1c6be1 commit b6b74fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustup-cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub fn install(no_prompt: bool, verbose: bool,
try!(do_pre_install_sanity_checks());
try!(do_anti_sudo_check(no_prompt));

if !try!(do_msvc_check(&opts)) {
if !no_prompt && !try!(do_msvc_check(&opts)) {
info!("aborting installation");
return Ok(());
}
Expand Down

0 comments on commit b6b74fb

Please sign in to comment.