committed by
GitHub
parent
bc9ab413b8
commit
0cfae3d5eb
@@ -81,8 +81,15 @@ impl Powershell {
|
|||||||
|
|
||||||
debug_assert!(self.supports_windows_update());
|
debug_assert!(self.supports_windows_update());
|
||||||
|
|
||||||
ctx.run_type()
|
let mut command = if let Some(sudo) = ctx.sudo() {
|
||||||
.execute(&powershell)
|
let mut command = ctx.run_type().execute(sudo);
|
||||||
|
command.arg(&powershell);
|
||||||
|
command
|
||||||
|
} else {
|
||||||
|
ctx.run_type().execute(&powershell)
|
||||||
|
};
|
||||||
|
|
||||||
|
command
|
||||||
.args(&[
|
.args(&[
|
||||||
"-Command",
|
"-Command",
|
||||||
&format!(
|
&format!(
|
||||||
|
|||||||
Reference in New Issue
Block a user