Skip to content

Commit

Permalink
Merge pull request #139 from la-magra/is-crlf-hosts-file
Browse files Browse the repository at this point in the history
Fix situation with hosts file line endings
  • Loading branch information
seth-reeser committed Jul 24, 2015
2 parents cf65149 + ca57c23 commit 7bee95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostmanager/hosts_file/updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def update_file(file, resolving_machine = nil, include_id = true)
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

Expand Down

0 comments on commit 7bee95f

Please sign in to comment.