From 5c5009972f5daea558409a1975c3aaae7f6a6e59 Mon Sep 17 00:00:00 2001 From: phanes Date: Sun, 23 Jan 2022 04:55:05 -0500 Subject: [PATCH] cheap workaround for vars file path --- src/loaders/abstract/Task.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/loaders/abstract/Task.cpp b/src/loaders/abstract/Task.cpp index 06d8b6e..288fdae 100644 --- a/src/loaders/abstract/Task.cpp +++ b/src/loaders/abstract/Task.cpp @@ -213,11 +213,12 @@ void Task::execute( Conf * configuration ) this->slog.log( E_FATAL, "[ '" + task_name + "' ] Target executable does not exist." ); throw Task_NotReady(); } - this->slog.log( E_INFO, "[ '" + task_name + "' ] Vars file: " + this->definition.get_env_vars_file() ); + std::string static_env_file = configuration->get_execution_context() + "/" + this->definition.get_env_vars_file(); + + this->slog.log( E_INFO, "[ '" + task_name + "' ] Vars file: " + static_env_file ); this->slog.log( E_INFO, "[ '" + task_name + "' ] Shell: " + this->definition.get_shell() ); - std::string static_env_file = configuration->get_execution_context() + "/" + this->definition.get_env_vars_file(); int return_code = Sproc::execute( this->definition.get_shell(), static_env_file,