Merge pull request #899 from matoro/master

battery: fix battery detection on Windows
This commit is contained in:
Dylan Araps 2018-01-30 11:44:18 +11:00 committed by GitHub
commit 7000e63807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2261,7 +2261,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="%"
batttery="$(trim "$battery")%"
;;
"Haiku")