Commit 976ae009 authored by Dylan Araps's avatar Dylan Araps

Battery: Fix % sign when no battery detected on Windows

parent 63529dde
......@@ -1616,7 +1616,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)"
battery="${battery/EstimatedChargeRemaining'='}"
[[ "$battery" ]] && battery+="%"
[[ "$(trim "$battery")" ]] && 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