From a4f5d47e72158a559bd4b47e70bf7ba1126b2dbd Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Fri, 5 Apr 2019 05:13:57 +0800 Subject: [PATCH] get_flags need before find_boot_image --- scripts/flash_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/flash_script.sh b/scripts/flash_script.sh index f8056f6a7..c8d26795d 100644 --- a/scripts/flash_script.sh +++ b/scripts/flash_script.sh @@ -44,11 +44,11 @@ ui_print "************************" is_mounted /data || mount /data || is_mounted /cache || mount /cache || abort "! Unable to mount partitions" mount_partitions -find_boot_image - check_data get_flags +find_boot_image + [ -z $BOOTIMAGE ] && abort "! Unable to detect target image" ui_print "- Target image: $BOOTIMAGE"