-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use windows line endings for windows hosts file #65
base: master
Are you sure you want to change the base?
Conversation
@@ -208,7 +208,9 @@ def new_content | |||
entries = hostsfile_header | |||
entries += unique_entries.map(&:to_line) | |||
entries << '' | |||
entries.join("\n") | |||
line_ending = "\n" | |||
line_ending = "\r\n" if node['platform_family'] == 'windows' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could combine this line (ex. line_ending = node['platform_family'] == 'windows' ? "\r\n" : "\n"
) so that we don't assign line_ending twice, in the uncommon case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me, ruby isn't my first language :)
+1 |
+1 |
Can I help somehow with merging this change? |
👍 |
Judging by the age of some of the open PRs, is this repo even supported anymore? |
Anything you can help with @tas50 as I see you fixed some of the previously failing Travis builds? |
No description provided.