diff --git a/neofetch b/neofetch index abd4b7b5..bfd94e62 100755 --- a/neofetch +++ b/neofetch @@ -1616,7 +1616,7 @@ get_battery() { "Windows") battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)" battery="${battery/EstimatedChargeRemaining'='}" - [[ "$battery" ]] && battery+="%" + [[ "$(trim "$battery")" ]] && battery="%" ;; "Haiku")