- opts="--exclude-from $EXCLUDES_DIR/ALWAYS"
- if [ -f "$EXCLUDES_DIR/$host" ]; then
- opts="$opts --exclude-from $EXCLUDES_DIR/$host"
- fi
+ opts=""
+ for file in "$EXCLUDES_DIR/ALWAYS" "$EXCLUDES_DIR/$host"; do
+ [ -f $file ] && opts="$opts --exclude-from $file"
+ done