]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto.bbclass: Fixup shell condition test syntax error
authorDarren Hart <dvhart@linux.intel.com>
Fri, 26 Sep 2014 19:04:31 +0000 (19:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Sep 2014 16:49:10 +0000 (17:49 +0100)
A warning is issued when run about an unexpected operator due to a
syntax error with an extra if empedded in the shell conditional. Remove
the extra if.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass

index 929d64a2902261723328d2249371bf97937a53a5..7718f9ab1b58f5edc7e59cdf4115d70746300dfd 100644 (file)
@@ -296,7 +296,7 @@ do_validate_branches() {
                force_srcrev="${SRCREV}"
        else
                git cat-file -t ${machine_srcrev} > /dev/null
-               if [ if $? -ne 0 ]; then
+               if [ $? -ne 0 ]; then
                        bberror "${machine_srcrev} is not a valid commit ID."
                        bbfatal "The kernel source tree may be out of sync"
                fi