Upgrade PowerShell modules after its configuration has been pulled

This commit is contained in:
Roey Darwish Dror
2019-03-11 10:30:44 +02:00
parent 4b5ef5f247
commit dac93ae0d1

View File

@@ -108,18 +108,6 @@ fn run() -> Result<(), Error> {
#[cfg(windows)] #[cfg(windows)]
let should_run_powershell = powershell.profile().is_some() && config.should_run(Step::Powershell); 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")] #[cfg(target_os = "linux")]
let distribution = linux::Distribution::detect(); 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)] #[cfg(unix)]
{ {
execute( execute(