summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot2017-05-18 20:14:34 +0200
committerroot2017-05-18 20:14:34 +0200
commit9e639b49b8ba925f5dd577973b1fbc1cf2e08133 (patch)
tree21e82578515caa85b675e4b436f138bab3d465d5
parent1cfbf20fb3336bdb0859470b09fb10740254e5a1 (diff)
downloadserver-utilities-9e639b49b8ba925f5dd577973b1fbc1cf2e08133.tar.gz
Ignore commented lines in lists
-rwxr-xr-xbackup-all.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup-all.sh b/backup-all.sh
index aeea10b..b6637ce 100755
--- a/backup-all.sh
+++ b/backup-all.sh
@@ -12,9 +12,9 @@ backup_all() (
12 LIST_FILE="$1" 12 LIST_FILE="$1"
13 DUPLICITY_OPTIONS="$2" 13 DUPLICITY_OPTIONS="$2"
14 14
15 while read -r LINE; do 15 grep -v '^\s*#' "$LIST_FILE" | while read -r LINE; do
16 backup-dataset.sh $LINE $DUPLICITY_OPTIONS 16 backup-dataset.sh $LINE $DUPLICITY_OPTIONS
17 done <"$LIST_FILE" 17 done
18) 18)
19 19
20case "${1:-help}" in 20case "${1:-help}" in