diff --git a/container/plugins/root/example.cc b/container/plugins/root/example.cc index 19234bc..c4ed7a1 100644 --- a/container/plugins/root/example.cc +++ b/container/plugins/root/example.cc @@ -122,7 +122,10 @@ void example3() auto exec_cmd = [&make_cmd](const std::string& cmd) { // shell 0 = success - THROW_IF(common::exec(make_cmd(cmd)), std::runtime_error, "command failed") + THROW_IF( + common::exec("bash -i -c '" + make_cmd(cmd) + "'"), + std::runtime_error, + "command failed") }; std::cout << "\nImporting journals...\n";