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

choco outdated: Exit 2 (enhanced exit code) not working as expected #1765

Closed
mwallner opened this issue Mar 15, 2019 · 2 comments
Closed

choco outdated: Exit 2 (enhanced exit code) not working as expected #1765

mwallner opened this issue Mar 15, 2019 · 2 comments

Comments

@mwallner
Copy link
Member

According to Choco 0.10.12 Changelog (https://github.com/chocolatey/choco/blob/stable/CHANGELOG.md#breaking-changes) choco outdated is supposed to return 2 when there are no package updates available.

This works properly until you add additional parameters (such as the --ignore-unfound switch).

image

@mwallner
Copy link
Member Author

relates to #1602

@mwallner
Copy link
Member Author

UPDATE: I've misunderstood how this is actually is supposed to work.

choco outdated only returns 2 when there is some package to be updated (or in other words, when there's packages to be returned) - when stating --ignore-unfound it doesn't return anything (as you're explicitly ignoring those packages)

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

3 participants