Skip to content

Commit

Permalink
for jq at least the "." argument is required
Browse files Browse the repository at this point in the history
Signed-off-by: Przemysław Grądzki <[email protected]>
  • Loading branch information
przemekgradzki committed Feb 5, 2024
1 parent b816b25 commit b10cd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publisher/product/ontology/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit b10cd02

Please sign in to comment.