Tiny bugfix. Removing doubled output - displaying storage when root is storage.

This commit is contained in:
Igor Pecovnik 2017-09-10 18:59:30 +02:00
parent 39fd9d9a7d
commit 5dfa229eb0

View File

@ -119,7 +119,7 @@ function storage_info() {
root_usage=$(awk '/\// {print $(NF-1)}' <<<${RootInfo} | sed 's/%//g')
root_total=$(awk '/\// {print $(NF-4)}' <<<${RootInfo})
StorageInfo=$(df -h $storage 2>/dev/null | grep $storage)
if [ -n "${StorageInfo}" ]; then
if [[ -n "${StorageInfo}" && ${RootInfo} != *$storage* ]]; then
storage_usage=$(awk '/\// {print $(NF-1)}' <<<${StorageInfo} | sed 's/%//g')
storage_total=$(awk '/\// {print $(NF-4)}' <<<${StorageInfo})
[[ "$storage" == */sd* ]] && hdd_temp=$(hddtemp -u C -nq $storage)