A good practice using shell scripts is to have them fail immediately when any command produces an error. This can prevent issues like overwriting valuable data with nonsense after an earlier command fails to run properly. It can also save substantial time to have scripts fail sooner rather than later.
Basically we want to link to the following (but maybe fork it to our team github first) and migrate a summary of the content to our docs.
What would you like to see added?
A good practice using shell scripts is to have them fail immediately when any command produces an error. This can prevent issues like overwriting valuable data with nonsense after an earlier command fails to run properly. It can also save substantial time to have scripts fail sooner rather than later.
Basically we want to link to the following (but maybe fork it to our team github first) and migrate a summary of the content to our docs.
https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425