mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Remove filename from wc
Line 118 and Line 127 changed wc to remove filename from output.
This commit is contained in:
parent
642c31c361
commit
15b9fb68d7
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ fi
|
|||
###########################
|
||||
function gravity_advanced() {
|
||||
|
||||
numberOf=$(wc -l $origin/$andLight)
|
||||
numberOf=$(wc -l < $origin/$andLight)
|
||||
echo "** $numberOf domains being pulled in by gravity..."
|
||||
|
||||
# Remove carriage returns and preceding whitespace
|
||||
|
@ -124,7 +124,7 @@ function gravity_advanced() {
|
|||
|
||||
# Sort and remove duplicates
|
||||
sort -u $origin/$supernova > $origin/$eventHorizon
|
||||
numberOf=$(wc -l $origin/$eventHorizon)
|
||||
numberOf=$(wc -l < $origin/$eventHorizon)
|
||||
echo "** $numberOf unique domains trapped in the event horizon."
|
||||
|
||||
# Format domain list as "192.168.x.x domain.com"
|
||||
|
|
Loading…
Reference in a new issue