Merge pull request #92 from amenat/mac_ac_bug

Fix: False AC charging message on MacOS
This commit is contained in:
Ethan Edwards 2021-01-27 12:50:48 -05:00 committed by GitHub
commit d1678a5834
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ battery_status()
;;
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)