diff options
author | root | 2017-05-18 20:14:34 +0200 |
---|---|---|
committer | root | 2017-05-18 20:14:34 +0200 |
commit | 9e639b49b8ba925f5dd577973b1fbc1cf2e08133 (patch) | |
tree | 21e82578515caa85b675e4b436f138bab3d465d5 | |
parent | 1cfbf20fb3336bdb0859470b09fb10740254e5a1 (diff) | |
download | server-utilities-9e639b49b8ba925f5dd577973b1fbc1cf2e08133.tar.gz |
Ignore commented lines in lists
-rwxr-xr-x | backup-all.sh | 4 |
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 | ||
20 | case "${1:-help}" in | 20 | case "${1:-help}" in |