Fix for hostfiles option in powershell 2

This commit is contained in:
webstersprodigy
2013-10-22 21:04:24 -07:00
parent 737fd832e0
commit 54971370cf
+2 -2
View File
@@ -647,14 +647,14 @@ http://webstersprodigy.net
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
if ($Hosts)
if ($PsCmdlet.ParameterSetName -eq "cmdHosts")
{
foreach($h in $Hosts)
{
Parse-Hosts($h) | Out-Null
}
}
elseif ($HostFile)
else
{
Parse-ILHosts($HostFile) | Out-Null
}