Disk: Ommit 'i'
This commit is contained in:
parent
91143de1a5
commit
5d9901b34e
4
neofetch
4
neofetch
|
@ -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
|
||||||
|
|
Reference in New Issue