diff options
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 |