Changeset View
Changeset View
Standalone View
Standalone View
validate_svg.sh
1 | #!/usr/bin/env bash | 1 | #!/bin/sh | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | find . -name '*.svg' -exec xmllint --noout {} + 2> xmlerrors | 3 | find . -name '*.svg' -exec xmllint --noout {} + 2> xmlerrors | ||
4 | if [ -s xmlerrors ]; then | 4 | if [ -s xmlerrors ]; then | ||
5 | cat xmlerrors | 5 | cat xmlerrors | ||
6 | rm xmlerrors | 6 | rm xmlerrors | ||
7 | exit 1 | 7 | exit 1 | ||
8 | fi | 8 | fi |