]> code.ossystems Code Review - openembedded-core.git/commitdiff
elfutils: fix the condition check before remove eu-objdump
authorRoy Li <rongqing.li@windriver.com>
Tue, 26 Nov 2013 05:17:09 +0000 (13:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Nov 2013 12:05:43 +0000 (12:05 +0000)
"grep -q" does not write anything to standard output, the result is same as
a empty string, The second test becomes [!""] which is a fixed true value

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils_0.155.bb

index 594dfb09ea1e0325ec43dc46752d18073d005e85..14eac26d8364e85bf83cb493e70e06a0e49d4667 100644 (file)
@@ -48,7 +48,7 @@ do_configure_prepend() {
 }
 
 do_install_append() {
-       if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then
+       if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then
                rm ${D}${bindir}/eu-objdump
        fi
 }