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")"
|
||||
bat="${bat%%%*}"
|
||||
case "$pmset" in
|
||||
*charged*)
|
||||
*charged* | "")
|
||||
return 4
|
||||
;;
|
||||
*discharging*)
|
||||
|
Loading…
Reference in New Issue
Block a user