X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_client.sh;h=4860e853ff91c87534dcfa42ef207eba2f6fe0a3;hp=47d6d219b5ce8eb1ae2757b64b0b22986f454c89;hb=891dee2c19bd2836e6818bffce1174f30c5d1ae5;hpb=2805ee334bead55e2ab08b7c4dbdbf07dcebf8e9 diff --git a/templates/view_client.sh b/templates/view_client.sh index 47d6d21..4860e85 100755 --- a/templates/view_client.sh +++ b/templates/view_client.sh @@ -21,8 +21,10 @@ n=$(printf %s "$values[N]" \ ) fullname="${n:-${values[FN]:-${values[NICKNAME]}}}" -hi_number="${values[X-HEALTH-INSURANCE]%;*}" -hi_company="${values[X-HEALTH-INSURANCE]#*;}" +hi_company="$(printf %s "${values[X-HEALTH-INSURANCE]}" |cut -d\; -f1)" +hi_number="$(printf %s "${values[X-HEALTH-INSURANCE]}" |cut -d\; -f2)" +hi_status="$(printf %s "${values[X-HEALTH-INSURANCE]}" |cut -d\; -f3)" + cat < @@ -71,6 +73,7 @@ cat <$(l10n X-HEALTH-INSURANCE) ${hi_company:+${hi_company}} ${hi_number:+ ${hi_number}} + ${hi_status:+ ${hi_status}}