Unverified Commit d4177592 authored by matoro's avatar matoro Committed by GitHub

simplify check as per review

parent 33fce465
......@@ -2261,7 +2261,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="$(trim "$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