更新 .gitattributes 文件以支持二进制文件,并修改 menu.sh 中的更新脚本执行方式

This commit is contained in:
Ing 2025-03-12 23:03:40 +08:00
parent f70815c117
commit 647b6024fd
2 changed files with 7 additions and 2 deletions

6
.gitattributes vendored
View File

@ -1 +1,5 @@
*.sh eol=lf * text=auto eol=lf
*.png binary
*.jpg binary
*.gif binary
*.ico binary

View File

@ -3556,7 +3556,8 @@ 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
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 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