fix update-check.sh

This commit is contained in:
Ing 2024-05-11 12:06:46 +08:00
parent 8b33ed37e3
commit a2bbcf0e31

View File

@ -2761,8 +2761,7 @@ function updateRR() {
fi fi
# Check conditions # Check conditions
if [ -f "${TMP_PATH}/update/update-check.sh" ]; then if [ -f "${TMP_PATH}/update/update-check.sh" ]; then
chmod +x "${TMP_PATH}/update/update-check.sh" cat "${TMP_PATH}/update/update-check.sh" | bash
${TMP_PATH}/update/update-check.sh
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
MSG="$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")" MSG="$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")"
if [ "${2}" = "-1" ]; then if [ "${2}" = "-1" ]; then