]> git.plutz.net Git - confetti/blobdiff - cards/export_card.sh
single label for seed input
[confetti] / cards / export_card.sh
index d6ea2937304bb0ffeae647358546a309db429d56..bd73eb2978bb030995bd9e7fd07c4f3b75b9deda 100755 (executable)
@@ -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.
 # 
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
-echo -n "Content-Type: text/vcard;charset=utf-8\n\n"
-card="${_GET[card]}"
-cat "$_DATA/vcard/$card"
+card="$(GET card |PATH)"
+cardfile="$_DATA/vcard/${card##*/}"
+
+. $_EXEC/cgilite/file.sh
+FILE "$cardfile" "text/vcard; charset=utf-8"