mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
bin/disk: add missing '%'
This commit is contained in:
parent
497f2d5aa4
commit
d59264f2bd
1 changed files with 1 additions and 1 deletions
2
bin/disk
2
bin/disk
|
@ -33,5 +33,5 @@ case $MP in
|
|||
esac
|
||||
|
||||
disk=$(df -h -P "$MP" 2>/dev/null || df -h "$MP")
|
||||
disk=$(echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "%d%sB,%d%", $1, $2, $3}')
|
||||
disk=$(echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "%d%sB,%d%%", $1, $2, $3}')
|
||||
printf "$(color M W)%s$(color -) " "$disk"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue