From ef0dd5f0968450873f78f53cd97b6fec58504ece Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Mon, 21 Mar 2016 17:22:38 +1100 Subject: [PATCH] fixed with @dylanaraps suggestions from #1 --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 43a0aad8..aa63de68 100755 --- a/neofetch +++ b/neofetch @@ -1622,9 +1622,8 @@ getbattery () { "Mac OS X") battery="$(pmset -g batt | grep -o '[0-9]*%')" power_status="$(pmset -g batt | awk 'NR==2 {print $3}')" - if [ "$power_status" == "charging;" ]; then + [ "$power_status" == "charging;" ] && \ battery="${battery} Charging" - fi ;; "Windows")