Skip to content

hook createl2o fails if no local definitions are available. #6

@tbugfinder

Description

@tbugfinder

LOCALSHCL=$(jq -r '.locals[0]|keys[] as $k | "\($k) = local.\($k)"' < "${MAINJSON}")

In case no local variable is defined the pre-commit hook should not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions