agiledivider / vagrant-hostsupdater

MIT License
1.15k stars 129 forks source link

Whitespace in Windows hosts #110

Open SautdeChat opened 8 years ago

SautdeChat commented 8 years ago

The removeFromHosts function leaves a blank line at the end of the hosts file, then the addToHosts function begins by adding a new line. So each up and halt results in another blank line added to the end of the hosts file.

Have solved locally by changing line 118: hostsFile.write(hosts) to hostsFile.write(hosts.rstrip)

cgsmith commented 7 years ago

@SautdeChat this will be fixed in an upcoming release. It may have been addressed by a prior bug report - ill verify