]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-audit
Enable shell options for safer execution environment
[backup-script.git] / bin / backup-audit
index 4f3358674f0ca5ca2dc7771909c366a3df32da8d..0dc2995f5925b5da2166067624090a63c0420603 100755 (executable)
@@ -27,6 +27,10 @@ default_files="running-config"
 default_generations=0
 default_target="/var/backups"
 
+# Set shell options.
+shopt -s nullglob
+set -o pipefail
+
 # Search configuration file (last one is used as default!)
 for conf in \
        "/usr/local/etc/backup-script.conf" \