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

partclone return 0 in case of error #241

Closed
dtronche opened this issue Nov 28, 2023 · 2 comments
Closed

partclone return 0 in case of error #241

dtronche opened this issue Nov 28, 2023 · 2 comments

Comments

@dtronche
Copy link

When partclone exits in error, it should return a non zero status so that it can be detected. However currently exit(0) is performed

After an error, our /var/log partition was full. We tried a partclone restore which stopped after the error message open logfile parclone.log error, however our script did not detect it as the command returned 0 despite being in error.

@dtronche
Copy link
Author

dtronche commented Nov 28, 2023

There are more exit 0 than this one. I think a global check should be done

@Thomas-Tsai
Copy link
Owner

Thanks for this bug report. I can reproduce this issue and we should find more exit 0.

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

No branches or pull requests

2 participants