Fix stray percent sign on NetBSD battery

This commit is contained in:
Dylan 2016-05-13 09:13:16 +10:00
parent 8aa2c0168c
commit 33c3a21f37

View file

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