supertux: fix sh equality operator
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 26 Oct 2010 15:43:30 +0000 (15:43 +0000)
committerMichael Smith <msmith@cbnco.com>
Sun, 14 Nov 2010 23:36:55 +0000 (18:36 -0500)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Acked-by: Michael Smith <msmith@cbnco.com>
recipes/supertux/files/img-resize.sh

index 0197964..130c82e 100644 (file)
@@ -10,14 +10,14 @@ fi
 for i in org/*; do
        b=`basename $i`
        ext=`expr "x$b" : 'x.*\.\(.*\)'`
-       if [ "$ext" == "png" ]; then
-           if [ $b == "tux-life.png" ]; then
+       if [ "$ext" = "png" ]; then
+           if [ $b = "tux-life.png" ]; then
                cp $i _.png
            else
                convert $i -resize 50% -colors 64 _.png
            fi
            pngcrush -q _.png $b
-       elif [ "$ext" == "jpg" ]; then
+       elif [ "$ext" = "jpg" ]; then
                convert $i -resize 50% -quality 60 $b
        fi
 done