From 8b35a8864374d89e55ac99ca20daf760efd13f11 Mon Sep 17 00:00:00 2001 From: Master Date: Wed, 1 Jul 2020 23:01:13 -0400 Subject: [PATCH] added shell attribute to unit object definition to allow more flexibility; defaults to sh --- src/Sproc/Sproc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index ece0aba..37b2f46 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -96,8 +96,10 @@ int Sproc::execute( std::string shell, std::string environment_file, std::string } std::string sourcer = shell + " -c \". " + environment_file + " && " + command + "\""; + + // I have no idea why this never shows up in the output! slog.log( E_DEBUG, "Shell call for loading: ``" + sourcer + "``." ); - std::cerr << sourcer.c_str() << std::endl; + exit_code_raw = system( sourcer.c_str() ); exit( WEXITSTATUS( exit_code_raw ) ); } else if ( pid > 0 )