I want to catch syntax error in shell script #412
Unanswered
AobaIwaki123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These days, I'm working with GitHub Actions.
Then, I found scripts which have syntax error do not return error code and so workflow does not notice the error.
For example, the code below has syntax error.
But it returns 0 as exit code so workflow does not notice the step is failed.
Is there any way to catch this error?
Beta Was this translation helpful? Give feedback.
All reactions