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

Bash script will not abort on errors #1

Open
peterjc opened this issue Apr 24, 2018 · 0 comments
Open

Bash script will not abort on errors #1

peterjc opened this issue Apr 24, 2018 · 0 comments

Comments

@peterjc
Copy link

peterjc commented Apr 24, 2018

I suggest you read http://redsymbol.net/articles/unofficial-bash-strict-mode/ and set your bash scripts to stop (abort) if any of the commands triggers and error.

With long bash scripts it is usually a big problem if one step fails, but the script continues running on to the next step. At best, you'll get pages of error messages. At worst, you'll end up overlooking an error and using a wrong result.

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

1 participant