mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
pipe du -h
output to awk to ensure we only get the file size, and not the filename too. Yeah that's right Dom, pipe.
This commit is contained in:
parent
1ad23a065e
commit
9acc3aac01
@ -371,7 +371,7 @@ header_write "Analyzing pihole.log"
|
|||||||
&& log_write "${PIHOLELOG} is ${pihole_length} lines long." \
|
&& log_write "${PIHOLELOG} is ${pihole_length} lines long." \
|
||||||
|| log_echo "Warning: No pihole.log file found!"
|
|| log_echo "Warning: No pihole.log file found!"
|
||||||
|
|
||||||
pihole_size=$(du -h "${PIHOLELOG}") \
|
pihole_size=$(du -h "${PIHOLELOG}" | awk '{ print $1 }') \
|
||||||
&& log_write "${PIHOLELOG} is ${pihole_length}." \
|
&& log_write "${PIHOLELOG} is ${pihole_length}." \
|
||||||
|| log_echo "Warning: No pihole.log file found!"
|
|| log_echo "Warning: No pihole.log file found!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user