We all write Bash scripts. They are convenient, fast and powerful. But how to make them safer? Bash provides some simple options that you can set at the beginning of every script (unless you have a good reason not to) that will keep things a little safer by causing the script to exit when unexpected stuff happens. These options are configured with the set option that you can read all about here.