simplify check as per review

This commit is contained in:
matoro 2018-01-29 17:52:57 -05:00 committed by GitHub
parent 33fce46525
commit d4177592c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")