Skip to content

Commit

Permalink
chg - Fixed script path
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Apr 11, 2024
1 parent 21ed2db commit b90b5c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/IspInfo/getispinfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Write-Output "Downloading the ISP list..."
Set-Variable ISPS ((Invoke-WebRequest -Uri $DATABASEADDRESS).links.href | Select-Object -Skip 5)

$ISPS | ForEach-Object -Process {
Set-Variable XMLFILE "$PWD\$_.xml"
Set-Variable XMLFILE "$PSScriptRoot\$_.xml"
Write-Output "Saving ISP info $_ to $XMLFILE..."
Invoke-WebRequest $DATABASEADDRESS$_ -OutFile $XMLFILE
$a = Get-Content $XMLFILE
Expand Down
5 changes: 3 additions & 2 deletions assets/IspInfo/getispinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Some variables
DATABASEADDRESS=https://autoconfig.thunderbird.net/v1.1/
DBFILE=$(mktemp)
ROOT=$(dirname "$0")
GREEN=$(tput setaf 2)
RED=$(tput setaf 1)
RESET=$(tput sgr0)
Expand All @@ -24,7 +25,7 @@ for ISPIDX in "${!ISPS[@]}"
do
ISP=${ISPS[ISPIDX]}
ISPADDRESS=$DATABASEADDRESS$ISP
OUTPUTFILE=$ISP.xml
OUTPUTFILE=$ROOT/$ISP.xml

# Download configuration information
printf "[$((ISPIDX+1)) of $ISPCOUNT] Downloading $GREEN$ISPADDRESS$RESET...\n"
Expand All @@ -41,4 +42,4 @@ do
done

# Done. User can now build Nettify.
printf "${GREEN}Done!$RESET\n"
printf "${GREEN}Done!$RESET\n"

0 comments on commit b90b5c4

Please sign in to comment.