Skip to content

Commit

Permalink
chg - Fixed track code
Browse files Browse the repository at this point in the history
  • Loading branch information
AptiviCEO committed Sep 27, 2024
1 parent b52957e commit ea1241b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Nettify/assets/IspInfo/getispinfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Set-Variable DATABASEADDRESS "https://autoconfig.thunderbird.net/v1.1/"

Write-Output "Downloading the ISP list..."
Set-Variable ISPS ((Invoke-WebRequest -Uri $DATABASEADDRESS).links.href | Select-Object -Skip 5)
if (Test-Path "$PSScriptRoot\isps.txt") { Remove-Item -Path "$PSScriptRoot\isps.txt" }

$ISPS | ForEach-Object -Process {
Set-Variable XMLFILE "$PSScriptRoot\$_.xml"
Expand All @@ -11,6 +12,5 @@ $ISPS | ForEach-Object -Process {
$a = Get-Content $XMLFILE
$b = '<?xml version="1.0" encoding="UTF-8"?>'
Set-Content $XMLFILE -value $b,$a
if (Test-Path "$PSScriptRoot\isps.txt") { Remove-Item -Path "$PSScriptRoot\isps.txt" }
Write-Output "$_" >> "$PSScriptRoot\isps.txt"
}
2 changes: 1 addition & 1 deletion Nettify/assets/IspInfo/getispinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ readarray -t ISPS < <(cat $DBFILE | grep -oP 'href=".+?"' | tail -n +6 | cut -b

# Form URLs and download their information one by one here
ISPCOUNT=${#ISPS[@]}
rm -f $ROOT/isps.txt
for ISPIDX in "${!ISPS[@]}"
do
ISP=${ISPS[ISPIDX]}
Expand All @@ -41,7 +42,6 @@ do
sed -i '1 i\<?xml version=\"1.0\" encoding=\"UTF-8\"?>' $OUTPUTFILE

# Write ISP name to file
rm -f $ROOT/isps.txt
printf "${ISP}\n" >> $ROOT/isps.txt
done

Expand Down

0 comments on commit ea1241b

Please sign in to comment.