Added quotes to path

This commit is contained in:
a.samsonkin 2022-05-31 15:28:32 +03:00
parent 9ea2c02dc7
commit ccff99e4d8
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});