Added quotes to path
This commit is contained in:
parent
9ea2c02dc7
commit
ccff99e4d8
|
@ -9,11 +9,11 @@ task('unity', function()
|
|||
if(is_win())
|
||||
{
|
||||
$unity_app_path = "'$unity_path/Editor/Unity.exe'";
|
||||
run_background_proc($unity_app_path, ['-projectPath', $proj_path]);
|
||||
run_background_proc($unity_app_path, ['-projectPath', "'$proj_path'"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath $proj_path > /dev/null 2>&1&";
|
||||
$cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath '$proj_path' > /dev/null 2>&1&";
|
||||
system($cmd, $res);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue