diff --git a/scripts/mkimage.sh b/scripts/mkimage.sh
index a4f541ef58c7225789244e33f39b87bcd393a67e..1b69f78194a0f810e4a0be9a789525fa03dd782e 100755
--- a/scripts/mkimage.sh
+++ b/scripts/mkimage.sh
@@ -217,13 +217,12 @@ build_profile() {
 				echo "$(${_c}sum "$output_file" | cut -d' '  -f1)  ${output_filename}" > "${output_file}.${_c}"
 			done
 		fi
-
-		if [ -n "$_yaml_out" ]; then
-			$mkimage_yaml --release $RELEASE \
-				--title "$title" \
-				--desc "$desc" \
-				"$output_file" >> "$_yaml_out"
-		fi
+	fi
+	if [ -n "$_yaml_out" ]; then
+		$mkimage_yaml --release $RELEASE \
+			--title "$title" \
+			--desc "$desc" \
+			"$output_file" >> "$_yaml_out"
 	fi
 }