Fix stdout mode when used with multiple batteries

This commit is contained in:
Dylan 2016-03-17 16:20:21 +11:00
parent 176fe42f03
commit a48d997bf4

View file

@ -1556,7 +1556,7 @@ getbattery () {
title="$subtitle"
# If shorthand is on, print each value on the same line
if [ "$battery_shorthand" == "on" ]; then
if [ "$battery_shorthand" == "on" ] || [ "$stdout_mode" == "on" ]; then
battery=${batteries[*]}
battery=${battery// /%, }
battery="${battery}%"