Correctly handle raw type ordering

We need to run raw outputting last, and were incorrectly detecting that
image type.

Change-Id: Idfbe46c34e783046b940d3eb28c846a0cf9ac0a6
This commit is contained in:
Gregory Haynes 2015-04-01 20:28:44 +00:00
parent 88309de96b
commit 7347577784

View file

@ -251,7 +251,7 @@ has_raw_type=
if [ "$IS_RAMDISK" == "0" ]; then
for IMAGE_TYPE in ${IMAGE_TYPES[@]} ; do
# We have to do raw last because it is destructive
if [ "$IMAGE_NAME" = "raw" ]; then
if [ "$IMAGE_TYPE" = "raw" ]; then
has_raw_type=1
else
compress_and_save_image $IMAGE_NAME.$IMAGE_TYPE