Fix 'disk' module on bar
This commit is contained in:
parent
66eb43cdfe
commit
8918160a7c
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
used() {
|
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 /)"
|
root="$(used /)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user