Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yq compare exit code depending of comparison #360

Closed
Perdjesk opened this issue Feb 17, 2020 · 1 comment
Closed

yq compare exit code depending of comparison #360

Perdjesk opened this issue Feb 17, 2020 · 1 comment
Milestone

Comments

@Perdjesk
Copy link

When using yq to compare file it would be useful to get a different exit code whether the files compared are the same or not.

From diff manpage (http://man7.org/linux/man-pages/man1/diff.1.html)

Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.

@mikefarah mikefarah added this to the 3.2.0 milestone Feb 28, 2020
@mikefarah
Copy link
Owner

Fixed in https://github.com/mikefarah/yq/releases/tag/3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants