From 6cc2e195700e6ce02c04160c0c93af6d325d89d7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 8 Dec 2024 11:49:43 +0100 Subject: Call execute with full settings. --- src/execute.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/execute.cc') diff --git a/src/execute.cc b/src/execute.cc index b4013d0..94a3d73 100644 --- a/src/execute.cc +++ b/src/execute.cc @@ -3,6 +3,8 @@ // See accompanying file LICENSE for details. #include "execute.h" +#include "ctor.h" + #include #include #include @@ -57,10 +59,11 @@ int parent_waitpid(pid_t pid) extern char **environ; // see 'man environ' -int execute(const std::string& command, +int execute(const ctor::settings& settings, + const std::string& command, const std::vector& args, const std::map& env, - bool verbose) + [[maybe_unused]] bool terminate) { std::vector argv; argv.push_back(command.data()); @@ -84,7 +87,7 @@ int execute(const std::string& command, cmd += arg; } - if(verbose) + if(settings.verbose) { std::cout << cmd << std::endl; } -- cgit v1.2.3