diff --git a/src/config.rs b/src/config.rs index 6f575301..71488c59 100644 --- a/src/config.rs +++ b/src/config.rs @@ -49,6 +49,7 @@ pub enum Step { Firmware, Restarts, Tldr, + Wsl, } #[derive(Deserialize, Default, Debug)] diff --git a/src/main.rs b/src/main.rs index 4813f343..2a7b0f26 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,11 @@ fn run() -> Result<()> { let should_run_powershell = powershell.profile().is_some() && config.should_run(Step::Shell); #[cfg(windows)] - runner.execute("WSL", || windows::run_wsl_topgrade(run_type))?; + { + if config.should_run(Step::Wsl) { + runner.execute("WSL", || windows::run_wsl_topgrade(run_type))?; + } + } if let Some(topgrades) = config.remote_topgrades() { if config.should_run(Step::Remotes) {