diff options
author | Erich Eckner <git@eckner.net> | 2021-11-13 22:30:06 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-11-13 22:30:06 +0100 |
commit | e549a1a38846412f8dba49da896986ab64cabe9e (patch) | |
tree | d61b4583c9bce1d5cad880fe54327514f9fd4309 /alpine-to-carddav | |
parent | 17765e0ab1e55667adde66c997869787d51847e3 (diff) | |
download | carddav-alpine-converter-e549a1a38846412f8dba49da896986ab64cabe9e.tar.xz |
do not ommit empty parts
Diffstat (limited to 'alpine-to-carddav')
-rwxr-xr-x | alpine-to-carddav | 4 |
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' } |