mirror of
https://github.com/pocopico/tinycore-redpill.git
synced 2025-09-15 12:51:13 +08:00
WEB Builder ver 0.10.6
This commit is contained in:
@ -2588,7 +2588,8 @@ function latestscript() {
|
|||||||
cursha256sum="$(sha256sum /home/tc/html/index.sh | awk '{print $1}')"
|
cursha256sum="$(sha256sum /home/tc/html/index.sh | awk '{print $1}')"
|
||||||
|
|
||||||
rm -f /tmp/index.sh
|
rm -f /tmp/index.sh
|
||||||
if [ "$curversion" != "$repoversion" ] || [ "$reposha256sum" != "$cursha256sum" ] && [ $(($(echo $repoversion | sed -e 's/'.//')-$(echo $curversion| sed -e 's/'.//'))) -gt 0 ]; then
|
|
||||||
|
if [ "$curversion" != "$repoversion" ] || [ "$reposha256sum" != "$cursha256sum" ] && [ $(($(echo $repoversion | sed -e 's/\.//g') - $(echo $curversion | sed -e 's/\.//g'))) -gt 0 ]; then
|
||||||
wecho "Current version : $curversion, new version available $repoversion, please update"
|
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>"
|
echo "<a href=\"${THISURL}?action=updatescript\" class=\"btn btn-primary btn-lg active\" role=\"button\" aria-pressed=\"true\">UPDATE</a>"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user