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