diff --git a/neofetch b/neofetch index 8df42edc..3aa5d470 100755 --- a/neofetch +++ b/neofetch @@ -2261,7 +2261,7 @@ get_battery() { "Windows") battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)" battery="${battery/EstimatedChargeRemaining}" - [[ "$(trim "$battery")" ]] && battery="%" + batttery="$(trim "$battery")%" ;; "Haiku")