+ # Add "NONE" tag when no tags are given in the config file:
+ [[ -z "$tags" ]] && tags="NONE"
+ # Add "auto-tags":
+ [[ "$local" -eq 1 ]] && tags="$tags,LOCAL"
+ # Check tags
+ if [[ -n "$TAG" && "$TAG" != "ALL" ]]; then
+ echo "$tags" | grep -E "(^|,)$TAG(,|$)" >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ if [ "$DRYRUN" -ne 0 ]; then
+ echo "Tags of system \"$system\" don't match \"$TAG\": \"$tags\". Skipped."
+ echo
+ fi
+ continue
+ fi
+ fi
+
+ # Make sure "source_root" ends with a slash ("/")
+ case "$source_root" in
+ *"/")