From 84d162a396f062931970878ad2eb55ca3ec5a9a4 Mon Sep 17 00:00:00 2001 From: Pawel Garbacz Date: Thu, 8 Feb 2024 12:30:57 +0100 Subject: [PATCH] Update publisher/product/ontology/build.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Przemysław Grądzki --- publisher/product/ontology/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publisher/product/ontology/build.sh b/publisher/product/ontology/build.sh index ef90ed45..a5f74ab8 100644 --- a/publisher/product/ontology/build.sh +++ b/publisher/product/ontology/build.sh @@ -136,7 +136,7 @@ function runHygieneTests() { logItem "${SPEC}" "$(getOntologyIRI < "${source_family_root}/${SPEC}")" if ${ONTOVIEWER_TOOLKIT_JAVA} --data "${source_family_root}/${SPEC}" \ --output ${TMPDIR}/output.json $(test -s "${source_family_root}/catalog-v001.xml" && echo "--ontology-mapping ${source_family_root}/catalog-v001.xml") \ - --goal consistency-check &>> "${hygiene_product_tag_root}/consistency-check.log" && jq -e "" &>/dev/null < "${TMPDIR}/output.json" ; then + --goal consistency-check &>> "${hygiene_product_tag_root}/consistency-check.log" && jq -e "." &>/dev/null < "${TMPDIR}/output.json" ; then displayMissingImports "${TMPDIR}/output.json" if [ "$(jq -r ".consistent" < "${TMPDIR}/output.json")" = "true" ] ; then echo -e "\t\x1b\x5b\x33\x32\x6d$(echo "Ontology \"${SPEC}\" is consistent." | tee -a "${hygiene_product_tag_root}/consistency-check.log")\x1b\x5b\x30\x6d"