X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=icedove.sh;h=6c88b2e80509c2b9bba7c701eb5969001f92b602;hb=98fa662c0567f365c9db8921ebbf6be5746f31a2;hp=2c02dec3693bc9b2fd71743a3ff0cc7cb33ce9dc;hpb=88b2e4310909e84ffeb498400335a4bba541a009;p=packages%2Fthunderbird.git diff --git a/icedove.sh b/icedove.sh index 2c02dec..6c88b2e 100644 --- a/icedove.sh +++ b/icedove.sh @@ -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