mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Update gravity.sh
Co-authored-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
parent
325f20d5c2
commit
052a1f294e
1 changed files with 0 additions and 1 deletions
|
@ -529,7 +529,6 @@ parseList() {
|
|||
# 2. Append ,adlistID to every line
|
||||
# 3. Remove trailing period (see https://github.com/pi-hole/pi-hole/issues/4701)
|
||||
# 4. Ensures there is a newline on the last line
|
||||
# previous line modified 20/04/2022, see https://github.com/pi-hole/pi-hole/issues/4701
|
||||
sed -e "/[^a-zA-Z0-9.\_-]/d;s/\.$//;s/$/,${adlistID}/;/.$/a\\" "${src}" >> "${target}"
|
||||
# Find (up to) five domains containing invalid characters (see above)
|
||||
incorrect_lines="$(sed -e "/[^a-zA-Z0-9.\_-]/!d" "${src}" | head -n 5)"
|
||||
|
|
Loading…
Reference in a new issue