Patchwork [2/4] adt_installer: fix syntax error

login
register
mail settings
Submitter Chong.Lu@windriver.com
Date July 4, 2014, 8:45 a.m.
Message ID <90313c71f3056db00149363ceaf259da8db81346.1404463017.git.Chong.Lu@windriver.com>
Download mbox | patch
Permalink /patch/74999/
State Accepted
Commit f6290450132c21afd72c11c4d3581c5967defb41
Headers show

Comments

Chong.Lu@windriver.com - July 4, 2014, 8:45 a.m.
We need to check YOCTOADT_QEMU variable whether is equal to "y".
So we should use "==" rather than "=".

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 .../installer/adt-installer/scripts/adt_installer_internal              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index f9c6d18..6a219a3 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -169,7 +169,7 @@  for target_type in $YOCTOADT_TARGETS; do
   $SUDO sed -i -e "s%##SDKTARGETSYSROOT##%$target_sysroot%g" $env_script
 done
 
-if [ "$YOCTOADT_QEMU" == "Y" ] || [ "$YOCTOADT_QEMU" = "y" ]; then
+if [ "$YOCTOADT_QEMU" == "Y" ] || [ "$YOCTOADT_QEMU" == "y" ]; then
   echo_info "\nInstalling qemu native ..."
   $OPKG_INSTALL_NATIVE_CMD nativesdk-qemu &>> $YOCTOADT_INSTALL_LOG_FILE
   check_result