mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c81072ba39
commit
78b44ce53d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user