mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Fix backslashes issue under Windows.
This patch fixes https://github.com/StevenBlack/hosts/pull/1165#issuecomment-590111613. This patch simply, replace the `\` Windows directory separator, with the universal `/` of the web convention.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user