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

fix(install): return exit codes from install script #1725

Merged
merged 2 commits into from Feb 23, 2024

Conversation

hacst
Copy link
Contributor

@hacst hacst commented Feb 23, 2024

As the main function was not the last command, it did always return a zero status code. Exiting right after main allows us to return the actual return code instead.

Analogous to anchore/syft#2664 .

As the main function was not the last command, it did always
return a zero status code. Exiting right after main allows us to
return the actual return code instead.

Analogous to anchore/syft#2664 .

Signed-off-by: Stefan Hacker <mail@hacst.net>
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @hacst

@hacst
Copy link
Contributor Author

hacst commented Feb 23, 2024

No problem. Thanks for the great project!

I see a validation failure complaining about a test db that is too old. Will you take care of that or should I try to figure that out?

@kzantow
Copy link
Contributor

kzantow commented Feb 23, 2024

@hacst -- I'll get this updated when #1726 merges

@kzantow kzantow merged commit 4813bfe into anchore:main Feb 23, 2024
10 checks passed
@kzantow kzantow changed the title fix(install): return right exit codes fix(install): return exit codes from install script Feb 26, 2024
@kzantow kzantow added the bug Something isn't working label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants