Merge pull request #139 from la-magra/is-crlf-hosts-file
Fix situation with hosts file line endings
This commit is contained in:
commit
7bee95fc95
|
@ -75,7 +75,7 @@ module VagrantPlugins
|
|||
file = Pathname.new(file)
|
||||
old_file_content = file.read
|
||||
new_file_content = update_content(old_file_content, resolving_machine, include_id)
|
||||
file.open('w') { |io| io.write(new_file_content) }
|
||||
file.open('wb') { |io| io.write(new_file_content) }
|
||||
old_file_content != new_file_content
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue