This commit is contained in:
parent
23e3d731c9
commit
bcf0f18006
@ -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 += "'";
|
||||
|
Loading…
x
Reference in New Issue
Block a user