Unverified Commit 7000e638 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #899 from matoro/master

battery: fix battery detection on Windows
parents 59c0d736 613ab743
......@@ -2261,7 +2261,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="%"
batttery="$(trim "$battery")%"
;;
"Haiku")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment