Commit a48d997b authored by Dylan's avatar Dylan

Fix stdout mode when used with multiple batteries

parent 176fe42f
...@@ -1556,7 +1556,7 @@ getbattery () { ...@@ -1556,7 +1556,7 @@ getbattery () {
title="$subtitle" title="$subtitle"
# If shorthand is on, print each value on the same line # 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=${batteries[*]}
battery=${battery// /%, } battery=${battery// /%, }
battery="${battery}%" battery="${battery}%"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment