mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
fix: don't pass too long env
This commit is contained in:
parent
d9dafcc7f3
commit
829978f662
2 changed files with 15 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue