Browse Source

Insert newline before adding stuff to etc/hosts

close #53
pull/56/head
Alex Hirsch 9 years ago
parent
commit
6115736cd2
  1. 1
      scripts/block-telemetry.ps1

1
scripts/block-telemetry.ps1

@ -147,6 +147,7 @@ $domains = @(
"m.hotmail.com"
"s.gateway.messenger.live.com"
)
echo "" | Out-File -Encoding ASCII -Append $hosts_file
foreach ($domain in $domains) {
if (-Not (Select-String -Path $hosts_file -Pattern $domain)) {
echo "0.0.0.0 $domain" | Out-File -Encoding ASCII -Append $hosts_file

Loading…
Cancel
Save