diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-12 16:04:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-12 16:04:30 +0100 |
commit | 622eb624b350a89918f92fc1084b67273e5e9eb4 (patch) | |
tree | 23f18c31727e76db00a11c6dd3dbc4a736a6a1b8 /src/kyclogic/taler-exchange-kyc-persona-converter.sh | |
parent | 70ad9bcf8ef180157ffb4788a562973eb41e5e7a (diff) | |
download | exchange-622eb624b350a89918f92fc1084b67273e5e9eb4.tar.xz |
-fix kycaid converter
Diffstat (limited to 'src/kyclogic/taler-exchange-kyc-persona-converter.sh')
-rwxr-xr-x | src/kyclogic/taler-exchange-kyc-persona-converter.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-persona-converter.sh b/src/kyclogic/taler-exchange-kyc-persona-converter.sh index a5d4d03ac..13142d0e5 100755 --- a/src/kyclogic/taler-exchange-kyc-persona-converter.sh +++ b/src/kyclogic/taler-exchange-kyc-persona-converter.sh @@ -44,11 +44,14 @@ else fi # Combine into final result. -echo "$J" | jq \ - --arg full_name "${FULLNAME}" \ - --arg street "${STREET}" \ - --arg city "${CITY}" \ - --rawfile photo "${PHOTO_FILE}" \ - '{$full_name,$street,$city,"birthdate":.birthdate,"residences":.cc,"identification_number":."identification-number",$photo}' +echo "$J" \ + | jq \ + --arg full_name "${FULLNAME}" \ + --arg street "${STREET}" \ + --arg city "${CITY}" \ + --rawfile photo "${PHOTO_FILE}" \ + '{$full_name,$street,$city,"birthdate":.birthdate,"residences":.cc,"identification_number":."identification-number",$photo}' \ + | jq \ + 'del(..|select(.==null))' exit 0 |