Article 4RYQD [SOLVED] why this not working

[SOLVED] why this not working

by
end
from LinuxQuestions.org on (#4RYQD)
i whant when percent of battery reach 20% break but he do notthing when reach 20

Code:
batt=`cat /sys/class/power_supply/BAT0/capacity`

while [ $batt -le "100" ];
do
if [ $batt -eq "20" ]; then
break
fi
donelatest?d=yIl2AUoC8zA latest?i=j_Pj6L3xTZo:Sa41DibyQcM:F7zBnMy latest?i=j_Pj6L3xTZo:Sa41DibyQcM:V_sGLiP latest?d=qj6IDK7rITs latest?i=j_Pj6L3xTZo:Sa41DibyQcM:gIN9vFwj_Pj6L3xTZo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments