Fix stdout mode when used with multiple batteries
This commit is contained in:
parent
176fe42f03
commit
a48d997bf4
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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}%"
|
||||
|
|
Loading…
Reference in a new issue