X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fexport_card.sh;h=bd73eb2978bb030995bd9e7fd07c4f3b75b9deda;hp=e9356a90610e0bf3d7b326b0fd394aec7b7470af;hb=3ea5e66a2f2cac72cfde653f56330370e0b170de;hpb=5ab459e666f2526f671fe222cd1646a4e6798b27 diff --git a/cards/export_card.sh b/cards/export_card.sh index e9356a9..bd73eb2 100755 --- a/cards/export_card.sh +++ b/cards/export_card.sh @@ -1,6 +1,6 @@ -#!/bin/zsh +#!/bin/sh -# 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"