From a7bde74cf3ec7a2548ffe41f5708b6b4bae75053 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 7 Jan 2012 13:13:17 -0800 Subject: [PATCH] VirtualBox driver can handle Windows-style newlines --- lib/vagrant/driver/virtualbox.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/driver/virtualbox.rb b/lib/vagrant/driver/virtualbox.rb index 430fd26a9..480a0967a 100644 --- a/lib/vagrant/driver/virtualbox.rb +++ b/lib/vagrant/driver/virtualbox.rb @@ -498,8 +498,9 @@ module Vagrant end end - # Return the output - r.stdout + # Return the output, making sure to replace any Windows-style + # newlines with Unix-style. + r.stdout.gsub("\r\n", "\n") end # Executes a command and returns the raw result object.