fix: Unable to use SHELL with podman, encapsulate commands in /bin/bash -c

This commit is contained in:
Gerald Pinder 2024-03-26 22:02:41 -04:00
parent 189141924b
commit ae9c3ef83a
3 changed files with 13 additions and 11 deletions

View file

@ -75,10 +75,12 @@ impl<'a> Module<'a> {
#[must_use]
pub fn print_module_context(&'a self) -> String {
serde_json::to_string(self).unwrap_or_else(|e| {
error!("Failed to parse module!!!!!: {e}");
process::exit(1);
})
serde_json::to_string(self)
.unwrap_or_else(|e| {
error!("Failed to parse module!!!!!: {e}");
process::exit(1);
})
.replace('"', r#"\""#)
}
#[must_use]