Allow to disable WSL step on Windows (#395) (#396)

This commit is contained in:
Eberhard Beilharz
2020-04-23 11:23:15 +02:00
committed by GitHub
parent 2f4267fd41
commit 911b720449
2 changed files with 6 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ pub enum Step {
Firmware, Firmware,
Restarts, Restarts,
Tldr, Tldr,
Wsl,
} }
#[derive(Deserialize, Default, Debug)] #[derive(Deserialize, Default, Debug)]

View File

@@ -100,7 +100,11 @@ fn run() -> Result<()> {
let should_run_powershell = powershell.profile().is_some() && config.should_run(Step::Shell); let should_run_powershell = powershell.profile().is_some() && config.should_run(Step::Shell);
#[cfg(windows)] #[cfg(windows)]
{
if config.should_run(Step::Wsl) {
runner.execute("WSL", || windows::run_wsl_topgrade(run_type))?; runner.execute("WSL", || windows::run_wsl_topgrade(run_type))?;
}
}
if let Some(topgrades) = config.remote_topgrades() { if let Some(topgrades) = config.remote_topgrades() {
if config.should_run(Step::Remotes) { if config.should_run(Step::Remotes) {