Upgrade PowerShell modules after its configuration has been pulled
This commit is contained in:
24
src/main.rs
24
src/main.rs
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user