When cd-jing into directory, if directory has space, it should put quotes around. I guess we could just put quotes around all the time
This commit is contained in:
parent
01efac63e2
commit
a4b04375d2
|
@ -1470,9 +1470,9 @@ bool RunCommandViaPopen(const char* command,
|
||||||
std::string commandInDir;
|
std::string commandInDir;
|
||||||
if(dir)
|
if(dir)
|
||||||
{
|
{
|
||||||
commandInDir = "cd ";
|
commandInDir = "cd \"";
|
||||||
commandInDir += dir;
|
commandInDir += dir;
|
||||||
commandInDir += " && ";
|
commandInDir += "\" && ";
|
||||||
commandInDir += command;
|
commandInDir += command;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue