summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vtoc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/vtoc.sh b/bin/vtoc.sh
index f2be2cb..fc69122 100755
--- a/bin/vtoc.sh
+++ b/bin/vtoc.sh
@@ -35,6 +35,11 @@ strings "$vcf" | while read -r line; do
case "$line" in
'FN:'*)
name="${line##*:}"
+ case "$name" in
+ *,*)
+ name="$(printf "%s" "$name" | tr -d ',')"
+ ;;
+ esac
;;
'TEL;TYPE='*':'*)
# avoid repetitions in same vacrd entry