[oe] [meta-oe][PATCH] android-tools: fix do_install

Nicolas Dechesne nicolas.dechesne at linaro.org
Fri Nov 18 11:08:49 UTC 2016


On Fri, Nov 18, 2016 at 11:26 AM, Koen Kooi <koen.kooi at linaro.org> wrote:
> -    if [ grep -q "ext4_utils" "${TOOLS}" ] ; then
> +    export TOOLSFILE="${WORKDIR}/tools.txt"
> +    echo ${TOOLS} > ${TOOLSFILE}
> +
> +    if grep -q "ext4_utils" ${TOOLSFILE} ; then


how about this instead?

echo  "${TOOLS}" | grep -q "ext4_utils"

it looks simpler and more readable to me.



More information about the Openembedded-devel mailing list