mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
<<<$()
back to < <()
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
d02bf258af
commit
8d8482d60b
1 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ gravity_Collapse() {
|
||||||
echo -ne " ${INFO} ${str}..."
|
echo -ne " ${INFO} ${str}..."
|
||||||
|
|
||||||
# Retrieve source URLs from $adListFile
|
# Retrieve source URLs from $adListFile
|
||||||
mapfile -t sources <<< $(
|
mapfile -t sources < <(
|
||||||
# Logic: Remove comments (#@;![)
|
# Logic: Remove comments (#@;![)
|
||||||
awk '!/^[#@;!\[]/ {
|
awk '!/^[#@;!\[]/ {
|
||||||
# Remove windows CR line endings
|
# Remove windows CR line endings
|
||||||
|
@ -139,7 +139,7 @@ gravity_Collapse() {
|
||||||
)
|
)
|
||||||
|
|
||||||
# Parse source domains from $sources
|
# Parse source domains from $sources
|
||||||
mapfile -t sourceDomains <<< $(
|
mapfile -t sourceDomains < <(
|
||||||
# Logic: Split by folder/port
|
# Logic: Split by folder/port
|
||||||
awk -F '[/:]' '{
|
awk -F '[/:]' '{
|
||||||
# Remove URL protocol & optional username:password@
|
# Remove URL protocol & optional username:password@
|
||||||
|
@ -291,7 +291,7 @@ gravity_ParseFileIntoDomains() {
|
||||||
|
|
||||||
# Define symbols used as comments: [!
|
# Define symbols used as comments: [!
|
||||||
# "||.*^" includes the "Example 2" domains we can extract
|
# "||.*^" includes the "Example 2" domains we can extract
|
||||||
# https://adblockplus.org/filter-cheatsheet
|
# https://adblockplus.org/filter-cheatsheet
|
||||||
abpFilter="/^(\\[|!)|^(\\|\\|.*\\^)/"
|
abpFilter="/^(\\[|!)|^(\\|\\|.*\\^)/"
|
||||||
|
|
||||||
# Parse Adblock lists by extracting "Example 2" domains
|
# Parse Adblock lists by extracting "Example 2" domains
|
||||||
|
|
Loading…
Reference in a new issue