]> git.pld-linux.org Git - packages/icedove.git/commitdiff
- simplify;
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 23 Sep 2010 08:12:03 +0000 (08:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    icedove.sh -> 1.7

icedove.sh

index f987d0e24720054110f9305ff89b83af8dd47c60..1be5a48739d86607a6bcb05f2d9937768ec55688 100644 (file)
@@ -5,11 +5,9 @@ LIBDIR="@LIBDIR@/icedove"
 
 # copy profile from Thunderbird if its available and if no Icedove
 # profile exists
-if [ ! -d $HOME/.icedove ]; then
-       if [ -d $HOME/.thunderbird ]; then
-               echo "Copying profile from Thunderbird"
-               cp -rf $HOME/.thunderbird $HOME/.icedove
-       fi
+if [ ! -d $HOME/.icedove ] && [ -d $HOME/.thunderbird ]; then
+       echo "Copying profile from Thunderbird"
+       cp -a $HOME/.thunderbird $HOME/.icedove
 fi
 
 # compreg.dat and/or chrome.rdf will screw things up if it's from an
@@ -26,7 +24,7 @@ ICEDOVE="$LIBDIR/icedove"
 if [ "$1" == "-remote" ]; then
        $ICEDOVE "$@"
 else
-       PING=`$ICEDOVE -remote 'ping()' 2>&1 >/dev/null`
+       PING=$($ICEDOVE -remote 'ping()' 2>&1 >/dev/null)
        if [ -n "$PING" ]; then
                $ICEDOVE "$@"
        else
This page took 0.030714 seconds and 4 git commands to generate.