Fix 'disk' module on bar

This commit is contained in:
Wiktor Zykubek 2020-05-11 12:59:30 +02:00
parent 9adf9948b0
commit b5ba0692fe

View File

@ -1,7 +1,7 @@
#!/bin/sh
used() {
df -h "$1" | awk 'NR==2 { print $3 "/" $4 " GB" }' | sed 's/G\//\//g;s/G / /g'
df -h "$1" | awk 'NR==2 { print $3 "/" $2 " GB" }' | sed 's/G\//\//g;s/G / /g'
}
root="$(used /)"