Fix 'disk' module on bar

This commit is contained in:
samedamci 2020-05-11 12:59:30 +02:00
parent 66eb43cdfe
commit 8918160a7c
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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 /)"