修复平台和内核版本检查逻辑,确保正确读取配置

This commit is contained in:
Ing 2025-11-02 17:04:22 +08:00
parent 2b0985d276
commit 6093ab1bd4

View File

@ -37,7 +37,7 @@ KVER="$(readConfigKey "kver" "${USER_CONFIG_FILE}")"
KPRE="$(readConfigKey "kpre" "${USER_CONFIG_FILE}")"
# Sanity check
if [ -z "${PLATFORM}" ] || [ -z "${KVER}" ]; then
if [ -z "${PLATFORM}" ] || [ -z "${KPRE:+${KPRE}-}${KVER}" ]; then
echo "ERROR: Configuration for model ${MODEL} and productversion ${PRODUCTVER} not found." >"${LOG_FILE}"
exit 1
fi