blockable: Improve output of asntool lookups
Build and provide rpm of demus shell scripts / rpmbuild (release) Successful in 56s
Build and provide rpm of demus shell scripts / rpmbuild (release) Successful in 56s
This commit is contained in:
+5
-1
@@ -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,5 +1,5 @@
|
||||
Name: demus-bash-scripts
|
||||
Version: 0.1.2
|
||||
Version: 0.1.3
|
||||
Release: %autorelease
|
||||
Summary: Useful shell scripts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user