fix: don't pass too long env

This commit is contained in:
iff 2025-01-20 15:54:45 +01:00
parent d9dafcc7f3
commit 829978f662
2 changed files with 15 additions and 3 deletions

View file

@ -310,7 +310,14 @@ pub fn module_output(data: &Data, module: &str) -> Option<Vec<String>> {
let executable = &data.split[0];
let last_command = &data.command;
let error_msg = &data.error;
let executables = data.executables.clone().join(" ");
let executables = {
let exes = data.executables.clone().join(" ");
if exes.len() < 100_000 {
exes
} else {
"".to_string()
}
};
let output = std::process::Command::new(shell)
.arg("-c")
.arg(module)