mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-03 06:21:15 +08:00
Fix for postprocessing scripts not working on UNIX when $SHELL is undefined (#4101)
Fix for PP scripts not working on UNIX when $SHELL is undefined thanks @jfbauer432 for pointing the problem out. thanks @lukasmatena for fixing it in PrusaSlicer (commit 87a5116) Co-authored-by: Lukáš Matěna <lukasmatena@seznam.cz>
This commit is contained in:
parent
407661522f
commit
1f835e01fc
@ -157,7 +157,7 @@ static int run_script(const std::string &script, const std::string &gcode, std::
|
|||||||
{
|
{
|
||||||
// Try to obtain user's default shell
|
// Try to obtain user's default shell
|
||||||
const char *shell = ::getenv("SHELL");
|
const char *shell = ::getenv("SHELL");
|
||||||
if (shell == nullptr) { shell = "sh"; }
|
if (shell == nullptr) { shell = "/bin/sh"; }
|
||||||
|
|
||||||
// Quote and escape the gcode path argument
|
// Quote and escape the gcode path argument
|
||||||
std::string command { script };
|
std::string command { script };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user