add cmd to log
This commit is contained in:
@@ -227,7 +227,7 @@ pub fn list_updates(handle: &AppHandle) -> Vec<Software> {
|
||||
}
|
||||
|
||||
fn execute_powershell(handle: &AppHandle, log_id: &str, cmd_title: &str, script: &str) -> Vec<Software> {
|
||||
emit_log(handle, log_id, cmd_title, "Executing PowerShell...", "info");
|
||||
emit_log(handle, log_id, cmd_title, &format!("Executing Script:\n{}\n---", script), "info");
|
||||
|
||||
let output = Command::new("powershell")
|
||||
.args(["-NoProfile", "-Command", script])
|
||||
|
||||
Reference in New Issue
Block a user