Rewrite init script in rust and fix non-shell CMDs
CI / build (push) Successful in 14s

This commit is contained in:
hulthe committed 2026-09-11 14:40:10 +02:00
1 parent 3a99da196d
commit d7613a4987
10 files changed
+603 -189

No files matched your search

+3 -1
View File
@@ -85,7 +85,9 @@ pub(crate) fn run(
}
if let Some(cmd) = &cmd {
let encoded = base64::engine::general_purpose::STANDARD.encode(cmd.as_bytes());
let argv = ["/bin/sh".to_string(), "-c".to_string(), cmd.clone()];
let data: Vec<u8> = argv.join("\0").into_bytes();
let encoded = base64::engine::general_purpose::STANDARD.encode(&data);
cmdline.push(format!("slim.cmd={encoded}"));
}