From a06a0243c093ee79c8151bb70b69cd89f3668ead Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 26 Oct 2010 15:43:30 +0000 Subject: [PATCH] supertux: fix sh equality operator Signed-off-by: Andreas Oberritter Acked-by: Michael Smith --- recipes/supertux/files/img-resize.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/supertux/files/img-resize.sh b/recipes/supertux/files/img-resize.sh index 0197964193..130c82eb27 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 -- 2.39.5