Fix: "cd arg2 ; arg1" not working. OK with &&. Also should prevent from: "cd non_existing_dir_oops && rm -fr *"
This commit is contained in:
parent
c26008ccf3
commit
5ab173b5ea
@ -59,7 +59,7 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
|||||||
std::string command;
|
std::string command;
|
||||||
command = "cd ";
|
command = "cd ";
|
||||||
command += args[1].c_str();
|
command += args[1].c_str();
|
||||||
command += "; ";
|
command += " && ";
|
||||||
command += args[0].c_str();
|
command += args[0].c_str();
|
||||||
cmSystemTools::RunCommand(command.c_str(), output);
|
cmSystemTools::RunCommand(command.c_str(), output);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user