From 92dd5a5aa8d13d6720ca6197be7af53464711fc4 Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 11 May 2024 12:06:46 +0800 Subject: [PATCH] fix update-check.sh --- files/initrd/opt/rr/menu.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index eca59acf..848482c1 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -2761,8 +2761,7 @@ function updateRR() { fi # Check conditions if [ -f "${TMP_PATH}/update/update-check.sh" ]; then - chmod +x "${TMP_PATH}/update/update-check.sh" - ${TMP_PATH}/update/update-check.sh + cat "${TMP_PATH}/update/update-check.sh" | bash if [ $? -ne 0 ]; then MSG="$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")" if [ "${2}" = "-1" ]; then