X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fupdate_card.sh;h=b16ea0549c8548fd727d23b78de7ed6e54928ac5;hp=ee9ac3eb295cb7e524714dc1550dab82f16b524d;hb=39d5084924d723c5bbea52c2b62fdfc39d39fe23;hpb=751d678a319fdf0730023e06e375565f8039aee3 diff --git a/cards/update_card.sh b/cards/update_card.sh index ee9ac3e..b16ea05 100755 --- a/cards/update_card.sh +++ b/cards/update_card.sh @@ -59,7 +59,11 @@ for field in $(POST_KEYS |grep -xE '[A-Z][A-Z0-9-]*'); do # (TEL) # printf '%s;TYPE=%s:%s\r\n' "${field}" "${_POST[phonetype${key#TEL}]}" "$(vcf_escape "$(POST "$field" "$cnt")")" # ;; - (*) + TEL) + vcf="$(pdi_update_attrib "$vcf" TEL $cnt TYPE="$(POST teltype $cnt |grep -Exm1 'HOME|WORK|CELL|FAX')")" + vcf="$(pdi_update_value "$vcf" "$field" "$cnt" "$(POST "$field" "$cnt")")" + ;; + *) vcf="$(pdi_update_value "$vcf" "$field" "$cnt" "$(POST "$field" "$cnt")")" ;; esac