Exit with non-zero status code upon error
See original GitHub issueI’d like to chain the statik command with && and then another command to upload the generated output.
However as it is statik exits with a 0 status whether successful or not so I have to perform other checks before I can upload.
I could probably submit a PR for this if it’s something you’d want to incorporate.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why the Unix command exit with non-zero value in Shell and ...
If the command's exit status is zero, it signals the shell that the utility finished successfully. The exit status is more of "an...
Read more >How to exit out of for loop with non zero status code? [duplicate]
I have below shell script and I am trying to exit out of for loop with non zero status code but somehow my...
Read more >required: exit non-zero status code when found error/warn ...
I hope there is no any warning/error in my project I set up a series of CI and hook checks, but eslint has...
Read more >Standard Exit Status Codes in Linux - Baeldung
A quick and practical guide to Linux exit codes. ... this code is equal to zero. Any non-zero exit code indicates that some...
Read more >Returning information from a shell script via an Exit Code
Success is traditionally represented with exit 0 ; failure is normally indicated with a non-zero exit-code. This value can indicate different reasons for ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Works perfectly. Thanks!
Sorry for the delay in getting back to you! I’ve now released v0.16.1 to return proper non-zero exit codes when an exception is thrown during processing.
Please check it out and let me know if it works for your purposes?