Fixed battery status on Apple computers without battery, like iMacs.
This commit is contained in:
parent
1c657481fd
commit
d55f678022
@ -1153,7 +1153,7 @@ case "$LP_OS" in
|
|||||||
local bat="$(cut -f2 <<<"$pmset")"
|
local bat="$(cut -f2 <<<"$pmset")"
|
||||||
bat="${bat%%%*}"
|
bat="${bat%%%*}"
|
||||||
case "$pmset" in
|
case "$pmset" in
|
||||||
*charged*)
|
*charged* | "")
|
||||||
return 4
|
return 4
|
||||||
;;
|
;;
|
||||||
*discharging*)
|
*discharging*)
|
||||||
|
Loading…
Reference in New Issue
Block a user