Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Don't exit with 0 if images are different #192

@bodgit

Description

@bodgit

This tool seems to always exit 0 when I run container-diff diff ... on two images that are different. A common convention in diff tools is to exit 0 when there are no differences, 1 when there are differences and 2 when an error occurred.

This would make it simple to use in shell scripts or build pipelines; I don't want to parse the output to discern if there are differences, in fact I probably don't even care about the output at all, I just want to be able to do something like container-diff diff <img1> <img2> || ....

See also the --exit-code option for git diff so having something implied by setting --quiet in #175 could work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions