Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ type Builder struct {
DockerHost string `json:"dockerHost"`
PushTags string `json:"pushTags"`
MTKYAML string `json:"mtkYAML"`
ExtendedInsertRows string `json:"extendedInsertRows"`
ExtendedInsertRows string `json:"extendedInsertRows,omitempty"`
DatabaseType string `json:"databaseType"`
Debug bool `json:"debug,omitemtpy"`
Debug bool `json:"debug,omitempty"`
MTK MTK `json:"mtk"`
}

Expand Down
2 changes: 1 addition & 1 deletion mariadb-image-builder
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if [ "$DEBUG" == "true" ]; then
set +o xtrace
fi

if [ -n "$(echo "$IMAGE_BUILD_DATA" | jq -c '.extendedInsertRows')" ]; then
if [ "$(echo "$IMAGE_BUILD_DATA" | jq -c '.extendedInsertRows // false')" != "false" ]; then
export MTK_EXTENDED_INSERT_ROWS=$(echo "$IMAGE_BUILD_DATA" | jq -rc '.extendedInsertRows')
fi
mtk-dump dump "$MTK_DATABASE" > "$san_db_dump_filename"
Expand Down