add model&build error.

This commit is contained in:
Ing 2023-04-29 02:18:14 +08:00
parent c9219b48b7
commit cfd4ccc2c7
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -52,7 +52,7 @@ SN="`readConfigKey "sn" "${USER_CONFIG_FILE}"`"
echo -e "$(TEXT "Model:") \033[1;36m${MODEL}\033[0m"
echo -e "$(TEXT "Build:") \033[1;36m${BUILD}\033[0m"
if [ ! -f "${MODEL_CONFIG_PATH}/${MODEL}.yml" ]; then
if [ ! -f "${MODEL_CONFIG_PATH}/${MODEL}.yml" ] || [ -z "`readConfigKey "builds.${BUILD}" "${MODEL_CONFIG_PATH}/${MODEL}.yml"`" ]; then
echo -e "\033[1;33m*** `printf "$(TEXT "The current version of arpl does not support booting %s-%s, please rebuild.")" "${MODEL}" "${BUILD}"` ***\033[0m"
exit 1
fi