*.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 committed 2018-08-16 11:20:38 +02:00
1 parent 52e1906ba0
commit cbb03d387c
3 files changed
+18

No files matched your search

@@ -1,4 +1,10 @@
#!/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
# Detect if we are on mac or should use GNU base64 options
case $(uname) in