diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2022-08-30 11:50:19 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2022-08-30 11:50:33 +0300 |
commit | 87a51165f321f0f4853ed5d6f76108e0073c12ba (patch) | |
tree | cced0c487f92d40515d7592287229e5cd84af602 | |
parent | de48bcd1b2b8c479f2c2000258a9cf72c5f48829 (diff) |
Fix of #8766: PP scripts not working on UNIX when $SHELL is undefined:
thanks @jfbauer432 for pointing the problem out.
-rw-r--r-- | src/libslic3r/GCode/PostProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/GCode/PostProcessor.cpp b/src/libslic3r/GCode/PostProcessor.cpp index ced74e3eb..de1807dbb 100644 --- a/src/libslic3r/GCode/PostProcessor.cpp +++ b/src/libslic3r/GCode/PostProcessor.cpp @@ -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 }; |