diff --git a/neofetch b/neofetch index eeb4b784..3f139c92 100755 --- a/neofetch +++ b/neofetch @@ -1688,8 +1688,8 @@ getbattery() { *) index="$battery_num" ;; esac - batteries=($(cat "/sys/class/power_supply/BAT$battery_num/capacity")) - battery_state=($(cat "/sys/class/power_supply/BAT${battery_num}/status")) + batteries=("$(cat /sys/class/power_supply/BAT$battery_num/capacity)") + battery_state=("$(cat /sys/class/power_supply/BAT${battery_num}/status)") # Get the subtitle and reassign it so it doesn't change. title="$subtitle"