Merge pull request #92 from amenat/mac_ac_bug
Fix: False AC charging message on MacOS
This commit is contained in:
commit
d1678a5834
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ battery_status()
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
status=$(pmset -g batt | sed -n 2p | cut -d ';' -f 2)
|
status=$(pmset -g batt | sed -n 2p | cut -d ';' -f 2 | tr -d " ")
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
|
|
Loading…
Reference in a new issue