mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-16 14:23:18 +08:00
build: Replace axel with aria2c for file downloads and cleanup CI config.
This commit is contained in:
4
justfile
4
justfile
@@ -25,7 +25,7 @@ dependency:
|
||||
prepare_autnums:
|
||||
set -euo pipefail
|
||||
|
||||
axel -q -o autnums.html https://bgp.potaroo.net/cidr/autnums.html
|
||||
aria2c -s 4 -x 4 -q -o autnums.html --allow-overwrite=true https://bgp.potaroo.net/cidr/autnums.html
|
||||
awk -F'[<>]' '{print $3,$5}' autnums.html | grep '^AS' > asnames.txt
|
||||
rm -f autnums.html
|
||||
echo "INFO> asnames.txt updated ($(wc -l < asnames.txt) entries)" >&2
|
||||
@@ -54,7 +54,7 @@ prepare_rib collector:
|
||||
outfile="rib-{{collector}}${suffix}"
|
||||
|
||||
rm -f "${outfile}"
|
||||
axel -q -o "${outfile}" "${url}"
|
||||
aria2c -s 4 -x 4 -q -o "${outfile}" "${url}"
|
||||
stat "${outfile}"
|
||||
echo "INFO> ${outfile} ready for bgptools" >&2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user