File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484# Parse the file using the OCA Parser and then prettify the JSON with jq
8585${PARSER} parse oca --path " ${EXCEL} " | jq . > ${OCABUNDLE}
8686
87+ if [ " ${PIPESTATUS[0]} " -ne 0 ] || jq -e ' has("errors")' " ${OCABUNDLE} " > /dev/null 2>&1 ; then
88+ echo " The Excel file did not parse correctly and needs to be fixed."
89+ echo " Parser errors:"
90+ echo " "
91+ cat ${OCABUNDLE}
92+ echo " "
93+ echo " Look for extraneous text / blank strings on the indicated lines."
94+ echo " If necessary, start again from the OCA Excel Template and reapply your changes."
95+ rm ${OCABUNDLE}
96+ exit 1
97+ fi
98+
8799# Grab out from the OCABundle the capture_base item from an overlay so it can be put into the JSON Files
88100# The data value may change so grabbing this ensures the added overlays reference the right capture base
89101CAPTUREBASEITEM=$( grep -m 1 ' "capture_base": "' ${OCABUNDLE} )
You can’t perform that action at this time.
0 commit comments