exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit b15b07315ccc95b8b9edd0e45a4ee6591a7fb785
parent 2d87b4c9fcf2826a526fe7efe3d5c967d702c313
Author: Florian Dold <florian@dold.me>
Date:   Tue,  6 May 2025 02:26:01 +0200

fix quoting in challenger-postal-context-check

Diffstat:
Msrc/kyclogic/taler-exchange-helper-measure-challenger-postal-context-check | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/kyclogic/taler-exchange-helper-measure-challenger-postal-context-check b/src/kyclogic/taler-exchange-helper-measure-challenger-postal-context-check @@ -18,7 +18,6 @@ # Hard error reporting on. set -eu - # Exit, with error message (hard failure) function exit_fail() { echo " FAIL: " "$@" >&2 @@ -89,15 +88,15 @@ fi INPUTS=$(jq '{"current_rules":.current_rules,"context":.context}') # Get address data -CONTACT_NAME=$(echo "$INPUTS" | jq -r '.context.FULL_NAME') -ADDRESS_LINES=$(echo "$INPUTS" | jq '.context.ADDRESS_LINES') -ADDRESS_COUNTRY=$(echo "$INPUTS" | jq -r '.context.ADDRESS_COUNTRY // null') +J_CONTACT_NAME=$(echo "$INPUTS" | jq '.context.FULL_NAME') +J_ADDRESS_LINES=$(echo "$INPUTS" | jq '.context.ADDRESS_LINES') +J_ADDRESS_COUNTRY=$(echo "$INPUTS" | jq '.context.ADDRESS_COUNTRY // null') # Convert address data to Challenger format as best we can. ADDRESS=$(jq -n \ - --argjson contact_name \""$CONTACT_NAME"\" \ - --argjson address_lines "$ADDRESS_LINES" \ - --argjson address_country "$ADDRESS_COUNTRY" \ + --argjson contact_name "$J_CONTACT_NAME" \ + --argjson address_lines "$J_ADDRESS_LINES" \ + --argjson address_country "$J_ADDRESS_COUNTRY" \ '{"CONTACT_NAME":$contact_name,"ADDRESS_LINES":$address_lines,"ADDRESS_COUNTRY":$address_country,"read_only":true}') # Get current rules