summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-25 18:05:10 +0000
committerjak1 <jak1@themanaworld.org>2022-06-25 18:05:10 +0000
commite0157cc49548a3b8edd038b9617ed9d4883547a2 (patch)
treefba868d8744f4caf2b11a52af4844641fec7ba6c
parent38fcd221d8fe03208abdafe0f01a6e54a601b71a (diff)
downloadtools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.gz
tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.bz2
tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.xz
tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.zip
check if file exists before removing (prevents unnecessary errors)
-rwxr-xr-xCI/testxml/xsdcheck.sh4
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 | \