From a48d997bf46697064b2bf161b258e06c71e6802c Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 17 Mar 2016 16:20:21 +1100 Subject: [PATCH] Fix stdout mode when used with multiple batteries --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 185bb628..234f647d 100755 --- a/neofetch +++ b/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}%"