mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Fix stdout mode when used with multiple batteries
This commit is contained in:
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}%"
|
||||
|
||||
Reference in New Issue
Block a user