From ccff99e4d88b5cf0040c4ec0f0bcc2fe58f6ac85 Mon Sep 17 00:00:00 2001 From: "a.samsonkin" Date: Tue, 31 May 2022 15:28:32 +0300 Subject: [PATCH] Added quotes to path --- unity.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity.inc.php b/unity.inc.php index 4cbc795..fb6e814 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -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); } });