[oe-commits] Andreas Oberritter : supertux: fix sh equality operator

git version control git at git.openembedded.org
Sun Nov 14 23:43:38 UTC 2010


Module: openembedded.git
Branch: master
Commit: a06a0243c093ee79c8151bb70b69cd89f3668ead
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a06a0243c093ee79c8151bb70b69cd89f3668ead

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Tue Oct 26 15:43:30 2010 +0000

supertux: fix sh equality operator

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
Acked-by: Michael Smith <msmith at cbnco.com>

---

 recipes/supertux/files/img-resize.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes/supertux/files/img-resize.sh b/recipes/supertux/files/img-resize.sh
index 0197964..130c82e 100644
--- a/recipes/supertux/files/img-resize.sh
+++ b/recipes/supertux/files/img-resize.sh
@@ -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





More information about the Openembedded-commits mailing list