From f77a38510197d0bf57a22754dec5bf3010dccb49 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 5 Sep 2015 22:15:31 +0200 Subject: [PATCH] Ignoring photo URLs. Photos inserted as an URL instead of being base64 encoded should not be compressed. --- vcf_compressor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcf_compressor.sh b/vcf_compressor.sh index 6c5c311..1634ba4 100755 --- a/vcf_compressor.sh +++ b/vcf_compressor.sh @@ -45,7 +45,7 @@ compress_photo () { process_line () { line="$1" - echo "$line" | egrep "^PHOTO;" >/dev/null 2>&1 + echo "$line" | egrep "^PHOTO;" | grep ";ENCODING=b;" >/dev/null 2>&1 if [ $? -eq 0 ]; then compress_photo "$line" else