Tiny bugfix. Removing doubled output - displaying storage when root is storage.
This commit is contained in:
parent
39fd9d9a7d
commit
5dfa229eb0
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user