]> code.ossystems Code Review - openembedded-core.git/commitdiff
lsbtest: fix comparison bashism
authorStefan Stanacar <stefanx.stanacar@intel.com>
Tue, 11 Mar 2014 15:40:09 +0000 (15:40 +0000)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 12 Mar 2014 19:00:34 +0000 (19:00 +0000)
== is a bashism use = instead.

(Based on OE-Core master rev: c90d1047c41148cbd57f26b5a34563346602a71b)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
meta/recipes-extended/lsb/lsbtest_1.0.bb

index f14f485285506eadaf8a0d4a2532bdcde2e52b72..e91df5f9d0f148dc69d4196b330d51274ea27501 100644 (file)
@@ -272,7 +272,7 @@ then
 fi
 
 if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then
-       if [ ${ARCH} == i686 ];then
+       if [ ${ARCH} = i686 ];then
                echo "i486-suse" >> ${PLATFORM_FILE}
                echo "i486-noarch" >> ${PLATFORM_FILE}
                echo "i486-pc" >> ${PLATFORM_FILE}
index 8973e094e5739d1e1e8e7dcb163f30b9bad7adbc..84cb4f2425ff3873412e2f7c9f82e4a4945c8dc4 100644 (file)
@@ -19,15 +19,15 @@ do_install() {
        install -d  ${D}/opt/lsb-test
        install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list
        install -m 0644 ${S}/session ${D}/opt/lsb-test/session
-       if [ "${TARGET_ARCH}" == "i586" ];then
+       if [ "${TARGET_ARCH}" = "i586" ];then
                sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list
                sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session
        fi
-       if [ "${TARGET_ARCH}" == "x86_64" ];then
+       if [ "${TARGET_ARCH}" = "x86_64" ];then
                sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list
                sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session
        fi
-       if [ "${TARGET_ARCH}" == "powerpc" ];then
+       if [ "${TARGET_ARCH}" = "powerpc" ];then
                sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
                sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
        fi