Skip to content

Commit da50202

Browse files
committed
Don't auto install VS for quiet installs
1 parent 742867f commit da50202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/self_update.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ pub(crate) fn install(
369369
if let Some(plan) = do_msvc_check(&opts) {
370370
if no_prompt {
371371
warn!("installing msvc toolchain without its prerequisites");
372-
} else if plan == VsInstallPlan::Automatic {
372+
} else if !quiet && plan == VsInstallPlan::Automatic {
373373
md(&mut term, MSVC_AUTO_INSTALL_MESSAGE);
374374
if common::confirm(
375375
"Automatically download and install Visual Studio 2022 Community edition? (Y/n)",
@@ -383,7 +383,7 @@ pub(crate) fn install(
383383
return Ok(utils::ExitCode(0));
384384
}
385385
}
386-
} else if plan == VsInstallPlan::Manual {
386+
} else {
387387
md(&mut term, MSVC_MESSAGE);
388388
md(&mut term, MSVC_MANUAL_INSTALL_MESSAGE);
389389
if !common::confirm("\nContinue? (y/N)", false)? {

0 commit comments

Comments
 (0)