fixed first battery when multiple batteries

This commit is contained in:
Andrew Titmuss 2016-03-17 16:07:53 +11:00
parent e206729fc3
commit 0228c5966c

View file

@ -1563,6 +1563,7 @@ getbattery () {
unset battery
# Print each battery on a separate line.
index=0
for bat in "${batteries[@]}"; do
case "$battery_display" in
"bar") prin "${title}${index}: $(bar ${bat/'%'} 100)" ;;