-
Notifications
You must be signed in to change notification settings - Fork 572
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
Install script returns exit code 0 even if install fails #1566
Labels
Comments
spiffcs
added a commit
that referenced
this issue
Jul 6, 2023
This resolves #1566. Signed-off-by: Lorenzo Orsatti <49567430+lorsatti@users.noreply.github.com> Co-authored-by: Christopher Phillips <cphillips918@gmail.com>
This was referenced Jul 12, 2023
Merged
This was referenced Jul 28, 2023
GijsCalis
pushed a commit
to GijsCalis/syft
that referenced
this issue
Feb 19, 2024
This resolves anchore#1566. Signed-off-by: Lorenzo Orsatti <49567430+lorsatti@users.noreply.github.com> Co-authored-by: Christopher Phillips <cphillips918@gmail.com>
hacst
added a commit
to hacst/syft
that referenced
this issue
Feb 22, 2024
Previously exit was called with the stdout content of the main function. This did not make sense and resulted in the script not returning the expected exit codes when main returned a non-zero code. Strangely enough this broken code was introduced in response to anchore#1566 but I do not see how it ever worked unless the script used to echo its intended exit code.
hacst
added a commit
to hacst/syft
that referenced
this issue
Feb 22, 2024
Previously exit was called with the stdout content of the main function. This did not make sense and resulted in the script not returning the expected exit codes when main returned a non-zero code. Strangely enough this broken code was introduced in response to anchore#1566 but I do not see how it ever worked unless the script used to echo its intended exit code. Signed-off-by: Stefan Hacker <mail@hacst.net>
hacst
added a commit
to hacst/syft
that referenced
this issue
Feb 22, 2024
Previously exit was called with the stdout content of the main function. This did not make sense and resulted in the script not returning the expected exit codes when main returned a non-zero code. Strangely enough this broken code was introduced in response to anchore#1566 but I do not see how it ever worked unless the script used to echo its intended exit code. Signed-off-by: Stefan Hacker <mail@hacst.net>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please provide a set of steps on how to reproduce the issue
What happened:
What you expected to happen:
Anything else we need to know?:
-e
, perhaps this should store the exit code and then return it later?Environment:
syft version
: n/acat /etc/os-release
or similar): Tested on Unbutu but it shouldn't really matterThe text was updated successfully, but these errors were encountered: