From 7906fefe112d6dd91d6dab411e59e53e91949ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 23 Jul 2020 16:05:17 +0200 Subject: [PATCH] contacts-importer: Protect against space in $TEMP --- contacts-importer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contacts-importer b/contacts-importer index 354411c..3537142 100755 --- a/contacts-importer +++ b/contacts-importer @@ -50,11 +50,11 @@ fi #Begin importing contacts -cd $TEMP +cd "$TEMP" awk ' /BEGIN:VCARD/ { ++a; fn=sprintf("card_import_L5_%02d.vcf", a); print "Writing: ", fn } { print $0 >> fn; } ' "$FILE" -for f in $TEMP/card_import_L5* +for f in "$TEMP"/card_import_L5* do syncevolution --import ${f%} backend=evolution-contacts database=${CONTACTDB} done