Skip to content

Exit 1 if errors are found #57

@iamdanfox

Description

@iamdanfox

Current behaviour

I'm using markdown-link-check on CI but the build is always green, even if the script finds broken links.

find . -name \*.md -exec markdown-link-check {} \;

Desired behaviour

markdown-link-check should exit 1 if a broken link is found, ensuring that CI builds will go red.

EDIT - it seems markdown-link-check already exits 1 if an error is found, it's just the usage within find -exec that suppresses errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be fixed, see reason in the comments

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions