Compare commits

..

No commits in common. "24960872892facf8512b0d670e356679cb4e07b8" and "2004a97410e3dd2d3b78ce4409ecb5251f7b2929" have entirely different histories.

View file

@ -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).trim().to_string()); return Ok(String::from_utf8_lossy(&proc.stdout).to_string());
} }
Command::URunCMD { command } => { Command::URunCMD { command } => {
let formatted_param = format!("cmd.exe /c \"{command}\""); let formatted_param = format!("cmd.exe /c \"{command}\"");