summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/vtoc.sh (renamed from bin/vtono.sh)6
-rwxr-xr-xzukbeam10
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/vtono.sh b/bin/vtoc.sh
index dd4f8b6..f2be2cb 100755
--- a/bin/vtono.sh
+++ b/bin/vtoc.sh
@@ -23,8 +23,8 @@ no=
vcf=
nos=
-if [ -z "$1" ] \
- || [ "$(file --brief --dereference --mime-type "$1")" != "text/vcard" ]; then
+if [ -z "$1" ] ||
+ [ "$(file --brief --dereference --mime-type "$1")" != "text/vcard" ]; then
die "no or invalid input"
else
vcf="$1"
@@ -69,7 +69,7 @@ strings "$vcf" | while read -r line; do
continue
[ -n "$no" ] &&
- printf "%s : %s\n" "$no" "$name"
+ printf "%s, %s\n" "$no" "$name"
;;
'END:VCARD')
nos=
diff --git a/zukbeam b/zukbeam
index a715d1d..1cdd495 100755
--- a/zukbeam
+++ b/zukbeam
@@ -117,15 +117,15 @@ kill-daemon)
kill_daemon
exit
;;
-vtono)
+vtoc)
[ -z "$infile" ] &&
infile="${data_dir}/contacts.vcf"
[ -z "$outfile" ] &&
- outfile="${data_dir}/contacts.txt"
+ outfile="${data_dir}/contacts.csv"
[ ! -s "$infile" ] &&
- die "vtono: ${infile}: no such file or directory"
- vtono.sh "$infile" > "$outfile" &&
- note "vtono: contacts saved to ${outfile}"
+ die "vtoc: ${infile}: no such file or directory"
+ vtoc.sh "$infile" > "$outfile" &&
+ note "vtoc: contacts saved to ${outfile}"
;;
"")
kill_daemon