From: Darren Hart Date: Fri, 26 Sep 2014 19:04:31 +0000 (+0000) Subject: kernel-yocto.bbclass: Fixup shell condition test syntax error X-Git-Tag: 2015-4~1458 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f0566e127abc7bb90588b2a8bee12ad3e7d35b3e;p=openembedded-core.git 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. Signed-off-by: Darren Hart Cc: Bruce Ashfield --- 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() { 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