When an inline image is used in a branding.json file, the genBundle.sh script in the ./scripts folder generates a JQ utility error. For example, currently in the repo:
cd OCABundles/schema/bcgov-digital-trust/business-card/
ERROR: line 97: /usr/bin/jq: Argument list too long
The error is coming from this line: ${JQ} ".[].overlays += $(cat ${BCKFILE})" ${OCABUNDLE} > ${TMPOCABUNDLE}
In this -- the ${BCKFILE} is the branding.json file.
This article found by searching for jq: Argument list too long seems to be the solution, but I just don't quite get it. I'm also thinking that if instead of cating the file, it was processed as a file, the jq command might work. Not sure.
When an inline image is used in a
branding.json
file, thegenBundle.sh
script in the./scripts
folder generates aJQ
utility error. For example, currently in the repo:cd OCABundles/schema/bcgov-digital-trust/business-card/
../../../../scripts/genBundle.sh -x OCA.xlsx branding.json
line 97: /usr/bin/jq: Argument list too long
The error is coming from this line:
${JQ} ".[].overlays += $(cat ${BCKFILE})" ${OCABUNDLE} > ${TMPOCABUNDLE}
In this -- the ${BCKFILE} is the
branding.json
file.This article found by searching for
jq: Argument list too long
seems to be the solution, but I just don't quite get it. I'm also thinking that if instead ofcat
ing the file, it was processed as a file, thejq
command might work. Not sure.Please investigate.