Commit 3d7fd5bb authored by Dylan's avatar Dylan

Fix battery usage if the first battery doesn't begin with 0

parent 4698baef
...@@ -1343,7 +1343,7 @@ getdisk () { ...@@ -1343,7 +1343,7 @@ getdisk () {
getbattery () { getbattery () {
case "$os" in case "$os" in
"Linux") "Linux")
if [ -d "/sys/class/power_supply/BAT0" ]; then if [ -d "/sys/class/power_supply" ]; then
# Set the index to the battery number. # Set the index to the battery number.
case "$battery_num" in case "$battery_num" in
"all") battery_num="*" index=0 ;; "all") battery_num="*" index=0 ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment