diff --git a/Editor/Internal/ProcessRunner.cs b/Editor/Internal/ProcessRunner.cs index a247d0e..407c786 100644 --- a/Editor/Internal/ProcessRunner.cs +++ b/Editor/Internal/ProcessRunner.cs @@ -18,13 +18,19 @@ public static async Task Run(string progressMessage, bool async, string fi var processInfo = new ProcessStartInfo { FileName = fileName, - Arguments = string.Join(" ", args), UseShellExecute = false, CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, RedirectStandardOutput = true, RedirectStandardError = true, }; + foreach (string arg in args) + { + if (!string.IsNullOrWhiteSpace(arg)) + { + processInfo.ArgumentList.Add(arg); + } + } using (var process = Process.Start(processInfo)) { process.OutputDataReceived += (sender, args) =>