Disk: Ommit 'i'

This commit is contained in:
Dylan Araps 2016-12-17 00:12:51 +11:00
parent 91143de1a5
commit 5d9901b34e

View file

@ -1542,8 +1542,8 @@ get_disk() {
# Get the info for / # Get the info for /
disks=($(df -P -h /)) || { err "Disk: 'df' exited with error code 1"; return; } disks=($(df -P -h /)) || { err "Disk: 'df' exited with error code 1"; return; }
disk_used="${disks[9]}" disk_used="${disks[9]/i}"
disk_total="${disks[8]}" disk_total="${disks[8]/i}"
disk_total_per="(${disks[11]})" disk_total_per="(${disks[11]})"
# Put it all together # Put it all together