battery spacing

This commit is contained in:
Dane Williams 2020-05-31 16:41:00 -07:00
parent ab9a46105e
commit 4849e304a6

View file

@ -83,7 +83,12 @@ main()
{ {
bat_stat=$(battery_status) bat_stat=$(battery_status)
bat_perc=$(battery_percent) bat_perc=$(battery_percent)
if [ -z "$bat_stat" ]; then # Test if status is empty or not
echo "$bat_stat $bat_perc" echo "$bat_stat $bat_perc"
else
echo "$bat_perc"
fi
} }
#run main driver program #run main driver program