From: Marcin Juszkiewicz Date: Thu, 22 Feb 2007 14:58:02 +0000 (+0000) Subject: classes: package, rm_work - fix bashisms (from Poky) X-Git-Tag: Release-2010-05/1~9160^2~9^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f6b7f81a0cdc9024c6c209a33cd686b17d15bf4;p=openembedded.git classes: package, rm_work - fix bashisms (from Poky) --- diff --git a/classes/package.bbclass b/classes/package.bbclass index 648b7467fb..34f3993bbf 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -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 diff --git a/classes/rm_work.bbclass b/classes/rm_work.bbclass index 7f590e1b15..1b87004143 100644 --- a/classes/rm_work.bbclass +++ b/classes/rm_work.bbclass @@ -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