Set exit code
kichik opened this issue · 6 comments
kichik commented
It would be very useful if pur set the exit code of the process based on the result of the update process. For example, if any versions were bumped, return 1. If nothing was changed, return 0. This will help using pur in a script that automates version updates.
alanhamlett commented
That would break most shell scripts if they set the -e flag, which most do. That would cause any shell script to abort on any non-zero exit code.
kichik commented
Then maybe a flag to enable this behavior?
alanhamlett commented
That would work, I'll add this to the next version.
alanhamlett commented
Released in v2.0.6.
Thanks!
pradyunsg commented
Hi @alanhamlett!
Could you document this option in README?
pradyunsg commented
nvm me.