From 3d7fd5bb5e40220760d930721edeed934d352b7e Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 26 Feb 2016 00:23:54 +1100 Subject: [PATCH] Fix battery usage if the first battery doesn't begin with 0 --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index 7ceab699..893c584a 100755 --- a/fetch +++ b/fetch @@ -1343,7 +1343,7 @@ getdisk () { getbattery () { case "$os" in "Linux") - if [ -d "/sys/class/power_supply/BAT0" ]; then + if [ -d "/sys/class/power_supply" ]; then # Set the index to the battery number. case "$battery_num" in "all") battery_num="*" index=0 ;;