diff options
Diffstat (limited to 'src/execute.cc')
-rw-r--r-- | src/execute.cc | 9 |
1 files changed, 6 insertions, 3 deletions
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 <unistd.h> #include <cstring> #include <sys/types.h> @@ -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<std::string>& args, const std::map<std::string, std::string>& env, - bool verbose) + [[maybe_unused]] bool terminate) { std::vector<const char*> 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; } |