From f5a1fa21f7ac500d8d6e786b1b288a63a286cf38 Mon Sep 17 00:00:00 2001 From: spacedingo Date: Fri, 8 Sep 2017 20:36:14 +0400 Subject: [PATCH] Add ignore-case switch to sort (domains) Domains with caps pass off as unique. It is necessary for proper duplicate removal. Example: ::: /etc/pihole/list.preEventHorizon (2 results) adsatt.abcnews.starwave.com Adsatt.ABCNews.starwave.com --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 168a4350..8db7f167 100755 --- a/gravity.sh +++ b/gravity.sh @@ -296,7 +296,7 @@ gravity_unique() { local str="Removing duplicate domains" echo -ne " ${INFO} ${str}..." - sort -u ${piholeDir}/${supernova} > ${piholeDir}/${preEventHorizon} + sort -u -f ${piholeDir}/${supernova} > ${piholeDir}/${preEventHorizon} echo -e "${OVER} ${TICK} ${str}" numberOf=$(wc -l < ${piholeDir}/${preEventHorizon})