fix battery detection on Windows

This commit is contained in:
matoro authored and GitHub committed 2018-01-29 10:30:53 -05:00
1 parent 59c0d73625
commit 33fce46525
1 file changed
+1 -1
+1 -1
View File
@@ -2261,7 +2261,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="%"
[[ "$(trim "$battery")" ]] && battery="$(trim "$battery")%"
;;
"Haiku")