diff --git a/src/test/resources/alma-fix/updateAlmaTestFiles.sh b/src/test/resources/alma-fix/updateAlmaTestFiles.sh index 6b3173b77..8834b27c9 100644 --- a/src/test/resources/alma-fix/updateAlmaTestFiles.sh +++ b/src/test/resources/alma-fix/updateAlmaTestFiles.sh @@ -28,6 +28,9 @@ function getAlmaXmlWriteFile() { sed -i "1s/.*/$XML_HEAD/" $resourceId.xml.tmp xmllint $resourceId.xml.tmp > $resourceId.xml rm *.tmp + if [ ! -s "$resourceId.xml" ]; then + echo "ALMA XML for $resourceId is not available anymore" ; rm "$resourceId.xml" ; rm "$resourceId.json" + fi } case $1 in