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"