]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - icedove.sh
- up to 38.5.0
[packages/thunderbird.git] / icedove.sh
index 2c02dec3693bc9b2fd71743a3ff0cc7cb33ce9dc..6c88b2e80509c2b9bba7c701eb5969001f92b602 100644 (file)
@@ -11,18 +11,19 @@ if [ ! -d $HOME/.icedove ] && [ -d $HOME/.thunderbird ]; then
 fi
 
 # compreg.dat and/or chrome.rdf will screw things up if it's from an
-# older version.  http://bugs.gentoo.org/show_bug.cgi?id=63999
+# older version. http://bugs.gentoo.org/show_bug.cgi?id=63999
 for f in ~/.icedove/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do
-       if [[ -f ${f} && ${f} -ot "$0" ]]; then
-               echo "Removing ${f} leftover from older Icedove"
-               rm -f "${f}"
+       [ -f "$f" ] || continue
+       if [ "$f" -ot "$0" ] || [ "$f" -ot "$LIBDIR/components/compreg.dat" ]; then
+               echo "Removing $f leftover from older Icedove"
+               rm -f "$f"
        fi
 done
 
 ICEDOVE="$LIBDIR/icedove"
 
-if [ "$1" == "-remote" ]; then
-       $ICEDOVE "$@"
+if [ "$1" = "-remote" ]; then
+       exec $ICEDOVE "$@"
 else
        PING=$($ICEDOVE -remote 'ping()' 2>&1 >/dev/null)
        if [ -n "$PING" ]; then
This page took 0.169026 seconds and 4 git commands to generate.