criticality #2

Merged
Xory merged 3 commits from dev into master 2025-12-18 16:20:33 +02:00
Showing only changes of commit 2496087289 - Show all commits

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
log(LogLevel::Debug, LOG_PATH, format!("Running command {command} with args {h}")).await;
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 } => {
let formatted_param = format!("cmd.exe /c \"{command}\"");