NetBSD fix stray percent sign in battery output

This commit is contained in:
Dylan 2016-05-13 09:14:02 +10:00
parent 33c3a21f37
commit 5a87bed817

View file

@ -1849,7 +1849,7 @@ getbattery () {
"NetBSD"*)
battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}')
battery="${battery:+/\.*}%"
battery="${battery/\.*/%}"
;;
esac
;;