From 8f6f7761c4c141d2ee6853e4dbcbd9977332c3b5 Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Fri, 1 Jun 2018 23:19:30 -0400 Subject: [PATCH] fixed missing vars load on post-rectification execution --- src/loaders/Task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loaders/Task.cpp b/src/loaders/Task.cpp index ec9cbba..7cd1ba8 100644 --- a/src/loaders/Task.cpp +++ b/src/loaders/Task.cpp @@ -306,7 +306,7 @@ void Task::execute( Conf * configuration, bool verbose ) syslog(LOG_INFO, infostring.str().c_str() ); std::cout << infostring.str(); - int rectifier_error = Sproc::execute( rectifier_command ); + int rectifier_error = Sproc::execute( "source " + configuration->get_env_vars_file() + " && " + rectifier_command ); // ********************************************** // d[3] Error Code Check for Rectifier @@ -416,4 +416,4 @@ void Task::execute( Conf * configuration, bool verbose ) // end d[1] Rectify Check // ********************************************** } -} \ No newline at end of file +}