From b10cd02e4ed734f5233c9ddf00e0df8e7e28e9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Gr=C4=85dzki?= Date: Mon, 5 Feb 2024 11:33:08 +0100 Subject: [PATCH] for jq at least the "." argument is required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Przemysław Grądzki --- publisher/product/ontology/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publisher/product/ontology/build.sh b/publisher/product/ontology/build.sh index 0b5ebb15..a37cc540 100644 --- a/publisher/product/ontology/build.sh +++ b/publisher/product/ontology/build.sh @@ -107,7 +107,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" @@ -129,7 +129,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"