X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_attendee.sh;h=d79553f284cc7576bd3adb4317375b419a149326;hp=3d7ad0457eff8d21e795d3fea609906ffc6acb3b;hb=9da739230659371a860e93dcaf3765b977e30de7;hpb=737e7f91162ec98b99dd2796ca26dd95e8c21f49 diff --git a/templates/edit_attendee.sh b/templates/edit_attendee.sh index 3d7ad04..d79553f 100755 --- a/templates/edit_attendee.sh +++ b/templates/edit_attendee.sh @@ -17,9 +17,12 @@ edit_card_item() { } edit_attendee() { - cardfile="$1" + cardfile="vcard/$1" + tempfile="temp/$1" + [ -f "$tempfile" ] && cardfile="$tempfile" + debug Using card: $cardfile unset key - vcf_parse "$cardfile" |while read -r line; do + vcf_parse "$cardfile" |debug |while read -r line; do declare -A tag case "$line" in value*) eval "$line";;