From e549a1a38846412f8dba49da896986ab64cabe9e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 13 Nov 2021 22:30:06 +0100 Subject: do not ommit empty parts --- alpine-to-carddav | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alpine-to-carddav') 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' } -- cgit v1.2.3-70-g09d2