From 65fcd633fab1c8ebf7af21c45ef2ee467e6e4fa6 Mon Sep 17 00:00:00 2001 From: Afro Date: Fri, 21 Apr 2023 17:32:09 -0400 Subject: [PATCH] changed script exit from exit 1 to return --- ASN2IP.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ASN2IP.ps1 b/ASN2IP.ps1 index dea8929..b2b6f9c 100644 --- a/ASN2IP.ps1 +++ b/ASN2IP.ps1 @@ -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 @@ -189,7 +189,7 @@ function Run { } catch { Write-Host "Failed to run the script. Error message: $($_.Exception.Message)" -ForegroundColor Red - exit 1 + return } }