error supressing
This commit is contained in:
parent
cfc0a86365
commit
1899031269
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ done
|
|||
[ "$bat" = "" ] && echo "$bat" && exit
|
||||
|
||||
# If something is charging, change status
|
||||
grep -rq 'Charging' /sys/class/power_supply/BAT* && stat='Charging'
|
||||
grep -rq 'Charging' /sys/class/power_supply/BAT* 2>/dev/null && stat='Charging'
|
||||
|
||||
# Get graphical battery level
|
||||
case 1 in
|
||||
|
|
Loading…
Reference in a new issue