remove duplicate percent

This commit is contained in:
Dustin Kirkland 2010-11-06 22:17:19 -05:00
commit 2580a37a4f

View file

@ -34,10 +34,10 @@ fi
if grep -qs \% /proc/mdstat; then if grep -qs \% /proc/mdstat; then
p=$(grep \% /proc/mdstat | sed -e "s/\%.*//" -e "s/.* //") p=$(grep \% /proc/mdstat | sed -e "s/\%.*//" -e "s/.* //")
sync=",$p%%" sync=",$p%"
fi fi
if [ -n "$msg" ]; then if [ -n "$msg" ]; then
printf "$(color B w r)%s%s$(color -)" "$msg" "$sync" printf "$(color B w r)%s%s$(color -) " "$msg" "$sync"
fi fi