added bash set builtin

This commit is contained in:
Jonas Forsberg 2020-10-14 10:44:01 +02:00
parent 70b3bea10d
commit 2883197b37
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -aeou pipefail
[[ ! -f "$HOME"/.borgbackup.env ]] && printf "\$HOME/.borgbackup.env doesn't exist!\n" && exit 1 [[ ! -f "$HOME"/.borgbackup.env ]] && printf "\$HOME/.borgbackup.env doesn't exist!\n" && exit 1