1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-21 22:38:08 +00:00

Use mapfile

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2021-10-11 17:31:03 +02:00
parent fdc4cf9869
commit 77a30ac0c2

View File

@ -586,10 +586,13 @@ processor_check() {
}
disk_usage() {
local DF
local file_system
echo_current_diagnostic "Disk usage"
DF=$(df -h)
log_write "${DF}";
mapfile -t file_system < <(df -h)
for line in "${file_system[@]}"; do
log_write " ${line}"
done
}
parse_setup_vars() {