init-dotfiles
init-dotfiles copied to clipboard
Fail fast on error
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).
Does that work on OSX and Linux?
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