Compare commits
3 commits
2004a97410
...
2496087289
| Author | SHA1 | Date | |
|---|---|---|---|
| 2496087289 | |||
| aa79a5ec73 | |||
| e16bbd894c |
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ pub async fn eval_command(text: impl Into<&str>) -> anyhow::Result<String> {
|
||||||
let h = args.join(" "); // only used for logging/debugging
|
let h = args.join(" "); // only used for logging/debugging
|
||||||
log(LogLevel::Debug, LOG_PATH, format!("Running command {command} with args {h}")).await;
|
log(LogLevel::Debug, LOG_PATH, format!("Running command {command} with args {h}")).await;
|
||||||
let proc = std::process::Command::new(command).args(args).output()?;
|
let proc = std::process::Command::new(command).args(args).output()?;
|
||||||
return Ok(String::from_utf8_lossy(&proc.stdout).to_string());
|
return Ok(String::from_utf8_lossy(&proc.stdout).trim().to_string());
|
||||||
}
|
}
|
||||||
Command::URunCMD { command } => {
|
Command::URunCMD { command } => {
|
||||||
let formatted_param = format!("cmd.exe /c \"{command}\"");
|
let formatted_param = format!("cmd.exe /c \"{command}\"");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue