Fix: fixed ac_command/bat_command

This commit is contained in:
Denis Benato
2025-10-19 23:00:23 +02:00
parent 4faa96298a
commit 834464a527
2 changed files with 5 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ impl CtrlPlatform {
.map(|s| s.to_string())
.collect()
};
if prog.len() > 1 {
if (!prog.is_empty()) && (!prog[0].is_empty()) {
let mut cmd = Command::new(&prog[0]);
for arg in prog.iter().skip(1) {
cmd.arg(arg);