blockable: Improve output of asntool lookups
Build and provide rpm of demus shell scripts / rpmbuild (release) Successful in 56s

This commit is contained in:
2025-03-20 12:16:11 +01:00
parent d5d24dfcd5
commit a71b621e04
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -94,7 +94,11 @@ pushd $TMP_DIR 1>/dev/null
if [ "$USE_ASNIP" == "1" ]; then
asnip -c -t $1
else
curl -s -A "blockable.sh script <daniel@demus.dk>" https://asntool.com/$1 | tail -n +3 | awk '{$1=$1};1' > cidrs.txt
CIDRS=$(curl -s -A "blockable.sh script <daniel@demus.dk>" https://asntool.com/$1 | awk '{if (NR<3) {} else {$1=$1}};1')
echo "$CIDRS" | head -2
echo
echo ----------
echo "$CIDRS" | tail -n +3 > cidrs.txt
fi
echo Copy the following to edgeos:
+1 -1
View File
@@ -1,5 +1,5 @@
Name: demus-bash-scripts
Version: 0.1.2
Version: 0.1.3
Release: %autorelease
Summary: Useful shell scripts