diff --git a/scripts/getInfo b/scripts/getInfo index 37f61fb..a1f08fe 100755 --- a/scripts/getInfo +++ b/scripts/getInfo @@ -1,6 +1,6 @@ #!/bin/bash -version=2.59.4 +version=2.59.5 date="9/12/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" @@ -2235,7 +2235,7 @@ figet_batt(){ #v2 9/12/2017 [ "$fg_batt" ] || fg_batt="répertoire power_supply inaccessible" return 1 fi - fg_nb_batt="$(grep -i 'Battery' /sys/class/power_supply/*/type | grep -c .)" + fg_nb_batt="$(grep -is 'Battery' /sys/class/power_supply/*/type | grep -c .)" # pas de messages, pb gentoo, pk? if [ "$fg_nb_batt" -eq 0 ]; then return 0 fi