diff --git a/neofetch b/neofetch index 44b81be0..696a49ea 100755 --- a/neofetch +++ b/neofetch @@ -1603,7 +1603,8 @@ getbattery () { battery=${battery/EstimatedChargeRemaining'='} battery=${battery//[[:space:]]/ } battery=${battery// } - battery+="%" + [ ! -z "$battery" ] && \ + battery+="%" ;; esac