Closed cmd-johnson closed 7 years ago
The output of pmset -g batt seems to have changed slightly since macOS 10.11:
pmset -g batt
Now drawing from 'AC Power' -InternalBattery-0 (id=3735651) 100%; charged; 0:00 remaining present: true
The regular expression responsible for parsing the output doesn't recognise the id field, fails and returns an empty array.
id
The output of
pmset -g batt
seems to have changed slightly since macOS 10.11:The regular expression responsible for parsing the output doesn't recognise the
id
field, fails and returns an empty array.