From: Timo Sirainen Date: Mon, 22 Oct 2012 15:35:56 +0000 (+0300) Subject: decode2text.sh: Assume xmlunzip exists in the same directory as this script. X-Git-Tag: 2.2.alpha1~20^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfd297466b615ada5d49c26504843e8bb30afa07;p=thirdparty%2Fdovecot%2Fcore.git decode2text.sh: Assume xmlunzip exists in the same directory as this script. This avoids hardcoding /usr/local/libexec/dovecot/ path in it. --- diff --git a/src/plugins/fts/decode2text.sh b/src/plugins/fts/decode2text.sh index 4413103e5d..1c881ff942 100755 --- a/src/plugins/fts/decode2text.sh +++ b/src/plugins/fts/decode2text.sh @@ -17,6 +17,7 @@ # } # } +libexec_dir=`dirname $0` content_type=$1 # The second parameter is the format's filename extension, which is used when @@ -66,7 +67,7 @@ xmlunzip() { cd $tempdir || exit 1 unzip -q "$path" 2>/dev/null || exit 0 find . -name "$name" -print0 | xargs -0 cat | - /usr/local/libexec/dovecot/xml2text + $libexec_dir/xml2text } wait_timeout() {