[Libreoffice-commits] .: download

François Tigeot ftigeot at kemper.freedesktop.org
Mon May 16 04:48:46 PDT 2011


 download |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a67ee624db6de9fbd017f188351594dfe2e62c0b
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Mon May 16 13:39:44 2011 +0200

    Fix some bashisms
    
    Equality tests with == are not posix-compliants. Only test = works
    with all /bin/sh shells.

diff --git a/download b/download
index 3a4ac9d..a4c71d7 100755
--- a/download
+++ b/download
@@ -210,7 +210,7 @@ if [ "$GUI" = "WNT" -a -n "$md5sum" ]; then
 	fi
         $TARFILE_LOCATION/dbghinst.EXE /T:$TMPUNPACK /C
         sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/dbghelp.exe | sed "s/ .*//"`
-        if [ "$sum" == "cd3086a91e37965dd761ef5fd5df5b15" ]; then
+        if [ "$sum" = "cd3086a91e37965dd761ef5fd5df5b15" ]; then
             unzip -LL -j -o -d ./external/dbghelp $TARFILE_LOCATION/tmp/dbghelp.exe
         fi
     fi
@@ -237,7 +237,7 @@ if [ "$GUI" = "WNT" -a -n "$md5sum" ]; then
 	if [ -f $TARFILE_LOCATION/tmp/$gdiplus_dll_path ]; then
 	    echo "Extraction succeeded"
 	    sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/$gdiplus_dll_path | sed "s/ .*//"`
-	    if [ "$sum" == "4721ab485e0c29cd1617a5f296b9cc47" ]; then
+	    if [ "$sum" = "4721ab485e0c29cd1617a5f296b9cc47" ]; then
 		cp $TARFILE_LOCATION/tmp/$gdiplus_dll_path ./external/gdiplus/gdiplus.dll
 	    else
 		echo "But unexpected checksum of $gdiplus_dll_path"


More information about the Libreoffice-commits mailing list