This commit is contained in:
parent
23e3d731c9
commit
bcf0f18006
@ -139,14 +139,15 @@ std::string sCommand::construct_cmd(cStyle style) const
|
|||||||
return "";
|
return "";
|
||||||
|
|
||||||
std::string cmdstr;
|
std::string cmdstr;
|
||||||
|
cmdstr += "bash -c '";
|
||||||
|
|
||||||
|
if (!mDir.empty())
|
||||||
|
cmdstr += "cd " + quote(mDir) + " && ";
|
||||||
|
|
||||||
for (const auto& env_var : mVars) {
|
for (const auto& env_var : mVars) {
|
||||||
cmdstr += env_var.first + "=" + quote(dequote(trim(env_var.second))) + " ";
|
cmdstr += env_var.first + "=" + quote(dequote(trim(env_var.second))) + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdstr += "bash -c '";
|
|
||||||
if (!mDir.empty())
|
|
||||||
cmdstr += "cd " + quote(mDir) + " && ";
|
|
||||||
|
|
||||||
cmdstr += mCmd;
|
cmdstr += mCmd;
|
||||||
|
|
||||||
cmdstr += "'";
|
cmdstr += "'";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user