fix disk script
This commit is contained in:
parent
4d34fcf3af
commit
7f0ffe1431
|
@ -3,7 +3,7 @@
|
||||||
COLOR1="#00FF90"
|
COLOR1="#00FF90"
|
||||||
COLOR2="#00A45D"
|
COLOR2="#00A45D"
|
||||||
|
|
||||||
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
|
used=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f3)
|
||||||
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
|
total=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f2)
|
||||||
|
|
||||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"
|
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"
|
||||||
|
|
Loading…
Reference in New Issue