Fix of #8766: PP scripts not working on UNIX when $SHELL is undefined:
thanks @jfbauer432 for pointing the problem out.
This commit is contained in:
parent
de48bcd1b2
commit
87a51165f3
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ static int run_script(const std::string &script, const std::string &gcode, std::
|
|||
{
|
||||
// Try to obtain user's default shell
|
||||
const char *shell = ::getenv("SHELL");
|
||||
if (shell == nullptr) { shell = "sh"; }
|
||||
if (shell == nullptr) { shell = "/bin/sh"; }
|
||||
|
||||
// Quote and escape the gcode path argument
|
||||
std::string command { script };
|
||||
|
|
Loading…
Add table
Reference in a new issue