From 647b6024fd8efb7631232abced3bec4558593237 Mon Sep 17 00:00:00 2001 From: Ing Date: Wed, 12 Mar 2025 23:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitattributes=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81=E4=BA=8C=E8=BF=9B=E5=88=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E5=B9=B6=E4=BF=AE=E6=94=B9=20menu.s?= =?UTF-8?q?h=20=E4=B8=AD=E7=9A=84=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 6 +++++- files/initrd/opt/rr/menu.sh | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 50ca329f..ec01609d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,5 @@ -*.sh eol=lf +* text=auto eol=lf +*.png binary +*.jpg binary +*.gif binary +*.ico binary diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index b693fbe6..95db5517 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -3556,7 +3556,8 @@ function updateRR() { fi # Check conditions if [ -f "${TMP_PATH}/update/update-check.sh" ]; then - cat "${TMP_PATH}/update/update-check.sh" | bash + chmod +x "${TMP_PATH}/update/update-check.sh" + bash "${TMP_PATH}/update/update-check.sh" 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