Skip to content

Commit

Permalink
Add new ssh entries and show lines in file
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Oct 2, 2023
1 parent b05a3d9 commit ee57086
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -eu

FILE_SOURCE=source
TARGET=public/blocklist.ipset
mkdir -p public

Expand All @@ -13,8 +14,10 @@ else
DATE=`date`
COMMIT="latest"
fi
ENTRIES=`grep -ve '^#' -ve '^$' $FILE_SOURCE | wc -l`

export DATE COMMIT
export DATE COMMIT ENTRIES

envsubst < template > $TARGET
grep -ve '^#' -ve '^$' source >> $TARGET

grep -ve '^#' -ve '^$' $FILE_SOURCE >> $TARGET
8 changes: 8 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#218.92.0.113
#218.92.0.118

# --- begin ssh
120.52.19.148
162.118.7.214
#180.101.88.247
Expand Down Expand Up @@ -247,6 +248,13 @@
173.214.161.76
170.64.150.185
#170.64.183.100
111.230.210.40
120.53.11.142
124.222.36.58
146.59.154.66
196.43.196.73
27.116.63.198
# --- end ssh

# web
18.236.161.49
Expand Down
1 change: 1 addition & 0 deletions template
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
#
# File Date : $DATE
# Version : $COMMIT
# Entries / Lines : $ENTRIES
#

0 comments on commit ee57086

Please sign in to comment.