From 5d38ee784e1299e2a1e1aae9aab86939df51a2ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 18 Jan 2021 13:32:58 +0100 Subject: [PATCH] simplified export using cgilite --- cards/export_card.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cards/export_card.sh b/cards/export_card.sh index e9356a9..5d57136 100755 --- a/cards/export_card.sh +++ b/cards/export_card.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014,2015 Paul Hänsch +# Copyright 2014, 2015, 2021 Paul Hänsch # # This file is part of Confetti. # @@ -20,8 +20,5 @@ card="$(GET card |PATH)" cardfile="$_DATA/vcard/${card##*/}" -if [ -f "$cardfile" ]; then - . $_EXEC/cgilite/file.sh - FILE "$cardfile" "text/vcard/charset=utf-8" -else -fi +. $_EXEC/cgilite/file.sh +FILE "$cardfile" "text/vcard; charset=utf-8" -- 2.39.2