diff --git a/neofetch b/neofetch index ac5e0e66..6a9af725 100755 --- a/neofetch +++ b/neofetch @@ -1849,7 +1849,7 @@ getbattery () { "NetBSD"*) battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}') - battery="${battery/\.*}%" + battery="${battery:+/\.*}%" ;; esac ;;