I’m currently working on automating our deployment with Bash scripts. For a TDD loving Java programmer it can be quite hard to figure this all out, but I’m getting better. I don’t ever think I’ll start to love it, but maybe one day I can like it. 😉 I’ll try to share small snippets of what I learn here.
I always have these early in my scripts. That way I know if anything fails (set -e) and if any variables is undefined (set -u).
Any other tips?