From: Vincent Génieux Date: Mon, 12 Jan 2015 22:10:01 +0000 (+0100) Subject: fix '[[: not found' error message using dash X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~31504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ff849d5936d3dc5e24301e0620da265df50fea;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fix '[[: not found' error message using dash Remove bash specific syntax '[[ test ]]' replaced with '[ test ]'. Fixes [YOCTO #7112] Signed-off-by: Vincent Génieux Signed-off-by: Ross Burton --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 805f7992e02..183769316b6 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -378,7 +378,7 @@ do_strip() { gawk '{print $1}'` for str in ${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}; do { - if [[ "$headers" != *"$str"* ]]; then + if [ "$headers" != *"$str"* ]; then bbwarn "Section not found: $str"; fi