projects
/
confetti
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d62152d
)
simplified export using cgilite
author
Paul Hänsch
<paul@plutz.net>
Mon, 18 Jan 2021 12:32:58 +0000
(13:32 +0100)
committer
Paul Hänsch
<paul@plutz.net>
Mon, 18 Jan 2021 12:32:58 +0000
(13:32 +0100)
cards/export_card.sh
patch
|
blob
|
history
diff --git
a/cards/export_card.sh
b/cards/export_card.sh
index
e9356a9
..
5d57136
100755
(executable)
--- a/
cards/export_card.sh
+++ b/
cards/export_card.sh
@@
-1,6
+1,6
@@
#!/bin/zsh
#!/bin/zsh
-# Copyright 2014,
2015
Paul Hänsch
+# Copyright 2014,
2015, 2021
Paul Hänsch
#
# This file is part of Confetti.
#
#
# This file is part of Confetti.
#
@@
-20,8
+20,5
@@
card="$(GET card |PATH)"
cardfile="$_DATA/vcard/${card##*/}"
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"