Fix hdd usage calculation (#1633)

This commit is contained in:
Maciej Głowacki 2020-10-13 10:41:43 +02:00 committed by GitHub
parent dc2bc2ce6e
commit cdc0829c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ if [ "$1" = "status" ]; then
# STATUS INFO WHEN MOUNTED
# output data drive
hddDataPartition=$(df | grep "/mnt/hdd" | cut -d " " -f 1 | cut -d "/" -f 3)
hddDataPartition=$(df | grep "/mnt/hdd$" | cut -d " " -f 1 | cut -d "/" -f 3)
hdd=$(echo $hddDataPartition | sed 's/[0-9]*//g')
hddFormat=$(lsblk -o FSTYPE,NAME,TYPE | grep part | grep "${hddDataPartition}" | cut -d " " -f 1)
if [ "${hddFormat}" = "ext4" ]; then