Fixed some more html builder bugs

This commit is contained in:
pocopico
2023-05-23 19:34:26 +03:00
parent abc7a51b38
commit ca7d1c8ce6

View File

@ -2505,7 +2505,7 @@ function latestscript() {
cursha256sum="$(sha256sum /home/tc/html/index.sh | awk '{print $1}')"
rm -f /tmp/index.sh
if [ "$curversion" != "$repoversion" ] || [ "$reposha256sum" != "$cursha256sum" ]; then
if [ "$curversion" != "$repoversion" ] || [ "$reposha256sum" != "$cursha256sum" ] && [ $(($(echo $repoversion | sed -e 's/'.//')-$(echo $curversion| sed -e 's/'.//'))) -gt 0 ]; then
wecho "Current version : $curversion, new version available $repoversion, please update"
echo "<a href=\"${THISURL}?action=updatescript\" class=\"btn btn-primary btn-lg active\" role=\"button\" aria-pressed=\"true\">UPDATE</a>"
fi