Skip to content

Commit

Permalink
JSON messages submitted from a file are now validated and compressed …
Browse files Browse the repository at this point in the history
…using jq before being sent
  • Loading branch information
mwvaughn committed Aug 1, 2019
1 parent e1b4cd0 commit b9d6cdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion abaco-submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ if [[ ! -z "${filetoupload}" ]]; then
die "File ${filetoupload} not found"
fi
# msg=$(cat ${filetoupload})
msg=$(<${filetoupload})
# msg=$(<${filetoupload})
# VALIDATES and compacts the JSON document
msg=$(jq -c . <tests/create.json)
if [[ ! "${msg}" ]]; then
warn "Value of option -F overrode the value passed for -m"
fi
Expand Down

0 comments on commit b9d6cdb

Please sign in to comment.