From dac93ae0d1adfa2bfb2fffea764baccda6367140 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 11 Mar 2019 10:30:44 +0200 Subject: [PATCH] Upgrade PowerShell modules after its configuration has been pulled --- src/main.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index ab2c48c0..4f75cd9f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -108,18 +108,6 @@ fn run() -> Result<(), Error> { #[cfg(windows)] let should_run_powershell = powershell.profile().is_some() && config.should_run(Step::Powershell); - #[cfg(windows)] - { - if should_run_powershell { - execute( - &mut report, - "Powershell Modules Update", - || powershell.update_modules(run_type), - config.no_retry(), - )?; - } - } - #[cfg(target_os = "linux")] let distribution = linux::Distribution::detect(); @@ -227,6 +215,18 @@ fn run() -> Result<(), Error> { )?; } + #[cfg(windows)] + { + if should_run_powershell { + execute( + &mut report, + "Powershell Modules Update", + || powershell.update_modules(run_type), + config.no_retry(), + )?; + } + } + #[cfg(unix)] { execute(