]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
decode2text.sh: Assume xmlunzip exists in the same directory as this script.
authorTimo Sirainen <tss@iki.fi>
Mon, 22 Oct 2012 15:35:56 +0000 (18:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 22 Oct 2012 15:35:56 +0000 (18:35 +0300)
This avoids hardcoding /usr/local/libexec/dovecot/ path in it.

src/plugins/fts/decode2text.sh

index 4413103e5dfd80fcf677db5ef84300a825ff356f..1c881ff9424d9811744832802afde628a4fd54df 100755 (executable)
@@ -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() {