Done is no mode displayed when an host is aleardy bocked in block_shitty_host

This commit is contained in:
Yorick Barbanneau 2017-01-06 12:37:37 +01:00
parent 0906839d29
commit e2984a8777

View file

@ -15,7 +15,8 @@ function block_shitty_host {
$ip + "`t`t" + $hostname | Out-File -encoding ASCII -append $filename
}
else {
Write-Host -NoNewline -ForegroundColor Yellow " Already blocked "
Write-Host -ForegroundColor Yellow " Already blocked "
return
}
}
catch {
@ -175,7 +176,7 @@ Write-Output "I's time to kick ass and chew bubble gum"
Write-Output "________________________________________"
write-Output ""
#foreach ($line in Get-Content "lib\hosts.txt"){ block_shitty_host $HOST_FILE $HOST_IP $line }
foreach ($line in Get-Content "lib\hosts.txt"){ block_shitty_host $HOST_FILE $HOST_IP $line }
foreach ($line in Get-Content "lib\ip.txt"){ block_shitty_ip $line }
#foreach ($line in Get-Content "lib\features.txt"){ disable_shitty_feature $line }
#foreach ($line in Get-Content "lib\services.txt") { disable_shitty_featureService $line }