]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt_installer: fix syntax error
authorChong Lu <Chong.Lu@windriver.com>
Fri, 4 Jul 2014 08:45:14 +0000 (16:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Jul 2014 10:19:50 +0000 (11:19 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index f9c6d18a487d2b8b0d6fcd6e856cc5cd02251167..6a219a3929098dfe5a23052f8fd5dc90561b689b 100755 (executable)
@@ -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