summaryrefslogtreecommitdiff
path: root/alpine-to-carddav
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-11-13 22:30:06 +0100
committerErich Eckner <git@eckner.net>2021-11-13 22:30:06 +0100
commite549a1a38846412f8dba49da896986ab64cabe9e (patch)
treed61b4583c9bce1d5cad880fe54327514f9fd4309 /alpine-to-carddav
parent17765e0ab1e55667adde66c997869787d51847e3 (diff)
downloadcarddav-alpine-converter-e549a1a38846412f8dba49da896986ab64cabe9e.tar.xz
do not ommit empty parts
Diffstat (limited to 'alpine-to-carddav')
-rwxr-xr-xalpine-to-carddav4
1 files changed, 1 insertions, 3 deletions
diff --git a/alpine-to-carddav b/alpine-to-carddav
index 0948616..accb84d 100755
--- a/alpine-to-carddav
+++ b/alpine-to-carddav
@@ -29,9 +29,7 @@ print_cnt() {
printf 'VERSION:3.0\n'
for key in "${keys[@]}"; do
eval 'value="${'"$1${key}"'}"'
- if [ -n "${value}" ]; then
- printf '%s:%s\n' "${key}" "${value}"
- fi
+ printf '%s:%s\n' "${key}" "${value}"
done
printf 'END:VCARD\n'
}