Fix missing battery bug

This commit is contained in:
Dylan Araps 2016-10-02 20:45:56 +11:00
parent 8b2c7b70e9
commit 194d37df09

View file

@ -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"