Skip to content

Commit 31098fe

Browse files
committed
Fixed a bug with switch parameter
1 parent af68da9 commit 31098fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/New-IPv4PortScan.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Begin{
160160
}
161161

162162
Process{
163-
if($UpdateList.IsPresent)
163+
if($UpdateList)
164164
{
165165
UpdateListFromIANA
166166
}
@@ -194,7 +194,7 @@ Process{
194194
{
195195
Write-Host "$ComputerName is not reachable!" -ForegroundColor Red
196196

197-
if($Force.IsPresent -eq $false)
197+
if($Force -eq $false)
198198
{
199199
do {
200200
$Answer = Read-Host "Would you like to continue? (perhaps only ICMP is blocked) [yes|no]"

0 commit comments

Comments
 (0)