better.
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 20s

This commit is contained in:
Your Name 2025-05-11 21:48:15 +12:00
parent 23e3d731c9
commit bcf0f18006

View File

@ -139,14 +139,15 @@ std::string sCommand::construct_cmd(cStyle style) const
return "";
std::string cmdstr;
cmdstr += "bash -c '";
if (!mDir.empty())
cmdstr += "cd " + quote(mDir) + " && ";
for (const auto& env_var : mVars) {
cmdstr += env_var.first + "=" + quote(dequote(trim(env_var.second))) + " ";
}
cmdstr += "bash -c '";
if (!mDir.empty())
cmdstr += "cd " + quote(mDir) + " && ";
cmdstr += mCmd;
cmdstr += "'";