Powershell fixes
This commit is contained in:
@@ -57,14 +57,21 @@ impl Powershell {
|
|||||||
|
|
||||||
print_separator("Powershell Modules Update");
|
print_separator("Powershell Modules Update");
|
||||||
|
|
||||||
let cmd = if ctx.config().yes() {
|
let mut cmd = vec!["Update-Module"];
|
||||||
"Update-Module -AcceptLicense -Force"
|
|
||||||
} else {
|
if ctx.config().yes() {
|
||||||
"Update-Module"
|
cmd.push("-AcceptLicense");
|
||||||
};
|
}
|
||||||
|
|
||||||
|
if ctx.config().verbose() {
|
||||||
|
cmd.push("-Verbose")
|
||||||
|
}
|
||||||
|
|
||||||
println!("Updating modules...");
|
println!("Updating modules...");
|
||||||
ctx.run_type().execute(&powershell).args(&["-Command", cmd]).check_run()
|
ctx.run_type()
|
||||||
|
.execute(&powershell)
|
||||||
|
.args(&["-NoProfile", "-Command", &cmd.join(" ")])
|
||||||
|
.check_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|||||||
Reference in New Issue
Block a user