<<<$() back to < <()

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2017-09-19 19:02:50 +01:00
parent d02bf258af
commit 8d8482d60b
No known key found for this signature in database
GPG key ID: 03843F6C65554B22

View file

@ -128,7 +128,7 @@ gravity_Collapse() {
echo -ne " ${INFO} ${str}..."
# Retrieve source URLs from $adListFile
mapfile -t sources <<< $(
mapfile -t sources < <(
# Logic: Remove comments (#@;![)
awk '!/^[#@;!\[]/ {
# Remove windows CR line endings
@ -139,7 +139,7 @@ gravity_Collapse() {
)
# Parse source domains from $sources
mapfile -t sourceDomains <<< $(
mapfile -t sourceDomains < <(
# Logic: Split by folder/port
awk -F '[/:]' '{
# Remove URL protocol & optional username:password@
@ -291,7 +291,7 @@ gravity_ParseFileIntoDomains() {
# Define symbols used as comments: [!
# "||.*^" includes the "Example 2" domains we can extract
# https://adblockplus.org/filter-cheatsheet
# https://adblockplus.org/filter-cheatsheet
abpFilter="/^(\\[|!)|^(\\|\\|.*\\^)/"
# Parse Adblock lists by extracting "Example 2" domains