From e0157cc49548a3b8edd038b9617ed9d4883547a2 Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 25 Jun 2022 18:05:10 +0000 Subject: check if file exists before removing (prevents unnecessary errors) --- CI/testxml/xsdcheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 | \ -- cgit v1.2.3-70-g09d2