Fix the battery check

This commit is contained in:
Dylan 2016-02-26 19:09:22 +11:00
parent d826f6e19c
commit 376614b918
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -1346,7 +1346,7 @@ getdisk () {
getbattery () { getbattery () {
case "$os" in case "$os" in
"Linux") "Linux")
if [ -d "/sys/class/power_supply" ]; then if [ "$(ls /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 ;;