From 33c3a21f37fc184ffdaef85491fc7fa0beb4c860 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 13 May 2016 09:13:16 +1000 Subject: [PATCH] Fix stray percent sign on NetBSD battery --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;;