Fix 'disk' module on bar
This commit is contained in:
parent
9adf9948b0
commit
b5ba0692fe
@ -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 /)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user