mirror of
https://github.com/RROrg/rr.git
synced 2025-12-08 21:19:43 +08:00
修复平台和内核版本检查逻辑,确保正确读取配置
This commit is contained in:
parent
2b0985d276
commit
6093ab1bd4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user