diff options
-rwxr-xr-x | CI/testxml/xsdcheck.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CI/testxml/xsdcheck.sh b/CI/testxml/xsdcheck.sh index 0924fc6..2faa0e9 100755 --- a/CI/testxml/xsdcheck.sh +++ b/CI/testxml/xsdcheck.sh @@ -2,7 +2,9 @@ cd xsd DIR="$(pwd)/../../../../client-data" -rm ../errors.txt +if [[ -f "../errors.txt" ]]; then + rm ../errors.txt +fi function check { xmllint --format --schema tmw.xsd "${DIR}"/"${1}" 2>&1 >/dev/null | \ |