mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Use mapfile
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
fdc4cf9869
commit
77a30ac0c2
1 changed files with 6 additions and 3 deletions
|
@ -586,10 +586,13 @@ processor_check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
disk_usage() {
|
disk_usage() {
|
||||||
local DF
|
local file_system
|
||||||
echo_current_diagnostic "Disk usage"
|
echo_current_diagnostic "Disk usage"
|
||||||
DF=$(df -h)
|
mapfile -t file_system < <(df -h)
|
||||||
log_write "${DF}";
|
|
||||||
|
for line in "${file_system[@]}"; do
|
||||||
|
log_write " ${line}"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_setup_vars() {
|
parse_setup_vars() {
|
||||||
|
|
Loading…
Reference in a new issue