Added -r to jq when tr -d double-quotes

This commit is contained in:
kexkey
2019-08-30 16:38:40 -04:00
committed by kexkey
parent 1a45edf008
commit a68123630a
13 changed files with 147 additions and 166 deletions

View File

@@ -20,8 +20,7 @@
. ./ots.sh
. ./newblock.sh
main()
{
main() {
trace "Entering main()..."
local step=0
@@ -269,7 +268,7 @@ main()
# POST http://192.168.111.152:8080/addtobatch
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233}
response=$(addtobatching $(echo "${line}" | jq ".address" | tr -d '"') $(echo "${line}" | jq ".amount"))
response=$(addtobatching $(echo "${line}" | jq -r ".address") $(echo "${line}" | jq ".amount"))
response_to_client "${response}" ${?}
break
;;