*.sh: Set sane bash options on shell scripts

Adding the following accross the project:

```bash
/# exit immediately when a command fails
set -e
/# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
/# error on unset variables
+set -u

```
This commit is contained in:
Max Leonard Inden
2018-08-16 11:07:36 +02:00
parent 52e1906ba0
commit cbb03d387c
3 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env bash
# exit immediately when a command fails
set -e
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
# error on unset variables
set -u
kubectl apply -f examples/example-app