lib/u3d/unity_runner.rb in u3d-1.0.2 vs lib/u3d/unity_runner.rb in u3d-1.0.3
- old
+ new
@@ -19,10 +19,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
## --- END LICENSE BLOCK ---
require 'u3d/utils'
+require 'u3d_core/core_ext/string'
require 'fileutils'
require 'file-tail'
module U3d
# Launches Unity with given arguments
@@ -47,14 +48,10 @@
tail_thread.run
end
begin
args.unshift(installation.exe_path)
- if Helper.windows?
- args.map! { |a| a =~ / / ? "\"#{a}\"" : a }
- else
- args.map!(&:shellescape)
- end
+ args.map!(&:argescape)
U3dCore::CommandExecutor.execute_command(command: args, output_callback: output_callback)
ensure
if tail_thread
sleep 1