Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2022-08-30 11:50:19 +0300
committerLukas Matena <lukasmatena@seznam.cz>2022-08-30 11:50:33 +0300
commit87a51165f321f0f4853ed5d6f76108e0073c12ba (patch)
treecced0c487f92d40515d7592287229e5cd84af602
parentde48bcd1b2b8c479f2c2000258a9cf72c5f48829 (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.cpp2
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 };