diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-25 18:05:10 +0000 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-25 18:05:10 +0000 |
commit | e0157cc49548a3b8edd038b9617ed9d4883547a2 (patch) | |
tree | fba868d8744f4caf2b11a52af4844641fec7ba6c /CI/testxml | |
parent | 38fcd221d8fe03208abdafe0f01a6e54a601b71a (diff) | |
download | tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.gz tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.bz2 tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.tar.xz tools-e0157cc49548a3b8edd038b9617ed9d4883547a2.zip |
check if file exists before removing (prevents unnecessary errors)
Diffstat (limited to 'CI/testxml')
-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 | \ |