Skip to content

Commit

Permalink
Issue #458: bash-engine: Don't set BASH_XTRACEFD if xtracefd isn't su…
Browse files Browse the repository at this point in the history
…pported
  • Loading branch information
SimonKagstrom committed Sep 16, 2024
1 parent 4464b42 commit 57be68f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engines/bash-engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ class BashEngine : public ScriptEngineBase
if (usePS4)
{
doSetenv(fmt("BASH_ENV=%s", helperPath.c_str()));
doSetenv(fmt("BASH_XTRACEFD=%d", xtraceFd));
if (m_bashSupportsXtraceFd)
{
doSetenv(fmt("BASH_XTRACEFD=%d", xtraceFd));
}
}
else
{
Expand Down

0 comments on commit 57be68f

Please sign in to comment.