From 7cfaed00a814c73edf8376a7fd452776325c3ac9 Mon Sep 17 00:00:00 2001 From: kyodev Date: Sat, 9 Dec 2017 17:25:00 +0100 Subject: [PATCH] getInfo 2.59.5 --- scripts/getInfo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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