]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-script
Enable shell options for safer execution environment
[backup-script.git] / bin / backup-script
index 84180d3e5e0d1c366b2cb7135e2aa13a755a549b..395fe9e93d194f3ab60c46502c5c167648edbd4d 100755 (executable)
@@ -53,6 +53,10 @@ default_job_pre_exec=""
 default_job_post_exec=""
 default_tags=""
 
+# Set shell options.
+shopt -s nullglob
+set -o pipefail
+
 Usage() {
        {
                echo "Usage: $NAME [<options>] [<job> [<job> [...]]]"