fixed with @dylanaraps suggestions from #1

This commit is contained in:
Andrew Titmuss 2016-03-21 17:22:38 +11:00
parent 49795c5035
commit ef0dd5f096

View file

@ -1622,9 +1622,8 @@ getbattery () {
"Mac OS X") "Mac OS X")
battery="$(pmset -g batt | grep -o '[0-9]*%')" battery="$(pmset -g batt | grep -o '[0-9]*%')"
power_status="$(pmset -g batt | awk 'NR==2 {print $3}')" power_status="$(pmset -g batt | awk 'NR==2 {print $3}')"
if [ "$power_status" == "charging;" ]; then [ "$power_status" == "charging;" ] && \
battery="${battery} Charging" battery="${battery} Charging"
fi
;; ;;
"Windows") "Windows")