From 87a51165f321f0f4853ed5d6f76108e0073c12ba Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 30 Aug 2022 10:50:19 +0200 Subject: [PATCH] Fix of #8766: PP scripts not working on UNIX when $SHELL is undefined: thanks @jfbauer432 for pointing the problem out. --- src/libslic3r/GCode/PostProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/PostProcessor.cpp b/src/libslic3r/GCode/PostProcessor.cpp index ced74e3ebd..de1807dbb8 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 };