classes: package, rm_work - fix bashisms (from Poky)
authorMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 22 Feb 2007 14:58:02 +0000 (14:58 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 22 Feb 2007 14:58:02 +0000 (14:58 +0000)
classes/package.bbclass
classes/rm_work.bbclass

index 648b746..34f3993 100644 (file)
@@ -153,7 +153,7 @@ runstrip() {
                if test $st -ne 0
                then
                        oewarn "runstrip: ${STRIP} $1: strip failed" >&2
-                       if [ x${IGNORE_STRIP_ERRORS} == x1 ]
+                       if [ x${IGNORE_STRIP_ERRORS} = x1 ]
                        then
                                #FIXME: remove this, it's for error detection
                                if file "$1" 2>/dev/null >&2
index 7f590e1..1b87004 100644 (file)
@@ -10,7 +10,7 @@ do_rm_work () {
     cd ${WORKDIR}
     for dir in *
     do
-        if [ `basename ${S}` == $dir ]; then
+        if [ `basename ${S}` = $dir ]; then
             rm -rf $dir/*
         elif [ $dir != 'temp' ]; then
             rm -rf $dir