A great Bash tip
I start every bash script with the following prolog:
#!/bin/bash
set -o nounset
set -o errexit
This will take care of two very common errors:
- Referencing undefined variables
- Ignoring failing commands
Thanks Robert
A great Bash tip
I start every bash script with the following prolog:
#!/bin/bash
set -o nounset
set -o errexit
This will take care of two very common errors:
- Referencing undefined variables
- Ignoring failing commands
Thanks Robert