X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/2cba9ba6247bf11aef1c9b9d9e8133e2ee9524bb..ff90937db28487ad9228eed5357565d2fcc3986e:/.lbdbrc?ds=sidebyside diff --git a/.lbdbrc b/.lbdbrc index a66f67c..99a6b5b 100644 --- a/.lbdbrc +++ b/.lbdbrc @@ -5,13 +5,9 @@ CONTACTS_DIR=$HOME/contacts if [ -d $CONTACTS_DIR ]; then METHODS="$METHODS m_vcf" VCF_FILES="$TMPDIR/lbdbq.vcf" - - VCF_TEMP="$(tempfile -d $TMPDIR -p lbdbq -s .vcf)" - cleanup() { rm -f $VCF_TEMP; trap - EXIT; } - + VCF_TEMP="$tmpdir/contacts.vcf" for i in $CONTACTS_DIR/*; do case "${i##*/}" in ICE*) continue;; esac; cat "$i"; echo ; done >| "$VCF_TEMP" - if ! cmp "$VCF_FILES" "$VCF_TEMP"; then + if ! cmp --quiet "$VCF_FILES" "$VCF_TEMP"; then mv "$VCF_TEMP" "$VCF_FILES" fi - cleanup fi