simplify check as per review
This commit is contained in:
parent
33fce46525
commit
d4177592c1
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue