Skip to content

Commit

Permalink
changed script exit from exit 1 to return
Browse files Browse the repository at this point in the history
  • Loading branch information
aalex954 committed Apr 21, 2023
1 parent 099d320 commit 65fcd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ASN2IP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Global:Get-ASNInfo {
return
}
Write-Host "Getting AS Numbers........." -NoNewline -ForegroundColor Yellow

if ($response.StatusCode -eq "200") {
$asnInfo = ConvertFrom-Json $responseContent
#$asnInfo = Get-Content .\msft_asns_bgpview.json -Raw | ConvertFrom-Json
Expand Down Expand Up @@ -189,7 +189,7 @@ function Run {
}
catch {
Write-Host "Failed to run the script. Error message: $($_.Exception.Message)" -ForegroundColor Red
exit 1
return
}
}

Expand Down

0 comments on commit 65fcd63

Please sign in to comment.