step2 fixes

This commit is contained in:
folex
2019-08-16 18:33:36 +03:00
parent ef471260b1
commit 4e236e0ee8
3 changed files with 16 additions and 16 deletions

View File

@ -32,8 +32,8 @@ JSON
# Send json as a request, and receive result
RESPONSE=$(curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$JSON" --compressed | jq -r .result.data | base64 -D)
# Parse result as JSON and print to console
echo -e "$RESPONSE" | jq .
# Parse json or print response as is
echo "$RESPONSE" | jq . 2>/dev/null || echo "$RESPONSE"
# Remove frun container
echo -e "Stopping..."