From 35248176cbe82119d3e578c55bc16d1dcf7dff42 Mon Sep 17 00:00:00 2001 From: phanes Date: Wed, 7 Feb 2024 00:55:41 -0500 Subject: [PATCH] interpolation for task values --- src/plan/Task.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/plan/Task.cpp b/src/plan/Task.cpp index c6d443f..da39878 100644 --- a/src/plan/Task.cpp +++ b/src/plan/Task.cpp @@ -356,6 +356,17 @@ void Task::execute( Conf * configuration ) this->slog.log_task( E_DEBUG, task_name, "Using unit definition: \"" + task_name + "\"." ); + interpolate(task_name); + interpolate(command); + interpolate(shell_name); + interpolate(user); + interpolate(group); + interpolate(environment_file); + interpolate(new_working_dir); + interpolate(rectifier); + interpolate(logs_root); + + // sanitize all path inputs from unit definition to be either absolute paths or relative to // project_root