considers if there is AC but no battery percent
This commit is contained in:
parent
59c37e1d63
commit
83cb547db9
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ main()
|
||||||
|
|
||||||
if [ -z "$bat_stat" ]; then # Test if status is empty or not
|
if [ -z "$bat_stat" ]; then # Test if status is empty or not
|
||||||
echo "♥ $bat_perc"
|
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
|
else
|
||||||
echo "♥ $bat_stat $bat_perc"
|
echo "♥ $bat_stat $bat_perc"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue