Merge pull request #1171 from funilrys/backslashes-make-hosts-windows

Fix backslashes issue under Windows.
This commit is contained in:
Steven Black 2020-02-24 13:28:16 -05:00 committed by GitHub
commit e168909d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1071,7 +1071,7 @@ def write_opening_header(final_file, **header_params):
final_file,
"# Fetch the latest version of this file: "
"https://raw.githubusercontent.com/StevenBlack/hosts/master/"
+ path_join_robust(header_params["outputsubfolder"], "")
+ path_join_robust(header_params["outputsubfolder"], "").replace("\\", "/")
+ "hosts\n",
)
write_data(