Whitespace and such

This commit is contained in:
Mitchell Hashimoto 2012-10-12 19:51:25 -07:00
parent 256ebd4dbe
commit 544006c16c
2 changed files with 3 additions and 1 deletions

View File

@ -60,10 +60,12 @@ module VagrantPlugins
# Otherwise we have an inline script, we need to Tempfile it,
# and handle it specially...
file = Tempfile.new('vagrant-shell')
# Unless you set binmode, on a Windows host the shell script will
# have CRLF line endings instead of LF line endings, causing havoc
# when the guest executes it. This fixes [GH-1181].
file.binmode
begin
file.write(config.inline)
file.fsync