fixing shell option in unit definitions/sprocket

master
Chris Punches 2021-04-07 23:20:41 -04:00
parent 9863390f67
commit 5287a1baa9
1 changed files with 1 additions and 1 deletions

View File

@ -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));