init-dotfiles icon indicating copy to clipboard operation
init-dotfiles copied to clipboard

Fail fast on error

Open anishathalye opened this issue 10 years ago • 2 comments

It's usually a good idea to set the set -e and set -x options in the script if you can. Failing fast on errors is usually a good thing. It might require reworking some of the things (if a command is allowed to fail, you can explicitly add something like || true, and stuff like that).

anishathalye avatar Jun 28 '15 18:06 anishathalye

Does that work on OSX and Linux?

Vaelatern avatar Jun 28 '15 20:06 Vaelatern

Sorry , I meant set -e and set -u. And yeah, they are just bash features: http://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html

anishathalye avatar Jun 28 '15 21:06 anishathalye