considers if there is AC but no battery percent

This commit is contained in:
Dane Williams 2020-05-31 16:47:48 -07:00
parent 59c37e1d63
commit 83cb547db9

View file

@ -86,6 +86,8 @@ main()
if [ -z "$bat_stat" ]; then # Test if status is empty or not
echo "$bat_perc"
elif [ -z "$bat_perc" ]; then # In case it is a desktop with no battery percent, only AC power
echo "$bat_stat"
else
echo "$bat_stat $bat_perc"
fi