summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2014-09-26 19:04:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-30 14:10:34 +0100
commit78b44ce53d954ce72d6f080fe578aa65748b9be1 (patch)
treea8b8611057db810ed65e0e103e7acf97311e5057 /meta/classes
parentc81072ba3933a48b029cf6e23e3404c7bd4d5dda (diff)
downloadpoky-78b44ce53d954ce72d6f080fe578aa65748b9be1.tar.gz
kernel-yocto.bbclass: Fixup shell condition test syntax error
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. (From OE-Core rev: f0566e127abc7bb90588b2a8bee12ad3e7d35b3e) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-yocto.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 929d64a290..7718f9ab1b 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -296,7 +296,7 @@ do_validate_branches() {
296 force_srcrev="${SRCREV}" 296 force_srcrev="${SRCREV}"
297 else 297 else
298 git cat-file -t ${machine_srcrev} > /dev/null 298 git cat-file -t ${machine_srcrev} > /dev/null
299 if [ if $? -ne 0 ]; then 299 if [ $? -ne 0 ]; then
300 bberror "${machine_srcrev} is not a valid commit ID." 300 bberror "${machine_srcrev} is not a valid commit ID."
301 bbfatal "The kernel source tree may be out of sync" 301 bbfatal "The kernel source tree may be out of sync"
302 fi 302 fi