From 5287a1baa901d94ad5c003523b68fcb4c4e47391 Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Wed, 7 Apr 2021 23:20:41 -0400 Subject: [PATCH] fixing shell option in unit definitions/sprocket --- src/Sproc/Sproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index 4ecfe4b..eef2981 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -316,7 +316,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string } // execute our big nasty thing - int ret = execl("/bin/sh", "/bin/sh", "-c", sourcer.c_str(), (char *) NULL); + int ret = execl( shell.c_str(), shell.c_str(), "-c", sourcer.c_str(), (char *) NULL); // print something useful to debug with if execl fails slog.log(E_FATAL, "ret code: " + std::to_string(ret) + "; errno: " + strerror(errno));