X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fexport_card.sh;h=0918032c6019fc8da3d3be9a0711b539fdb01365;hp=5d57136c02554d930b58bb0870240fa603998405;hb=HEAD;hpb=5d38ee784e1299e2a1e1aae9aab86939df51a2ff diff --git a/cards/export_card.sh b/cards/export_card.sh index 5d57136..0918032 100755 --- a/cards/export_card.sh +++ b/cards/export_card.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/sh # Copyright 2014, 2015, 2021 Paul Hänsch # @@ -20,5 +20,9 @@ card="$(GET card |PATH)" cardfile="$_DATA/vcard/${card##*/}" +. $_EXEC/pdiread.sh . $_EXEC/cgilite/file.sh + +printf 'Content-Disposition: inline; filename="%s.vcf"\r\n' "$(pdi_value "$(pdi_load "$cardfile")" FN)" + FILE "$cardfile" "text/vcard; charset=utf-8"