Fixed battery status on Apple computers without battery, like iMacs.

This commit is contained in:
Bartosz Janda 2014-10-09 22:18:17 +02:00 committed by Olivier Mengué
parent 1c657481fd
commit d55f678022

View File

@ -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*)