Ensure that the platform_check_image() function returns an error code. Signed-off-by: Chen Minqiang <[email protected]>
@@ -95,7 +95,7 @@ platform_check_image() {
;;
*)
nand_do_platform_check "$board" "$1"
- return 0
+ return $?
esac
@@ -74,6 +74,7 @@ platform_check_image() {
totolink,a8000ru|\
xiaomi,redmi-router-ax6s)
[ "$magic" != "d00dfeed" ] && {