]> code.ossystems Code Review - openembedded-core.git/commitdiff
fix '[[: not found' error message using dash
authorVincent Génieux <vincent2014@startigen.fr>
Mon, 12 Jan 2015 22:10:01 +0000 (23:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Feb 2015 17:39:50 +0000 (17:39 +0000)
Remove bash specific syntax '[[ test ]]' replaced with '[ test ]'.

Fixes [YOCTO #7112]

(From OE-Core rev: f2ff849d5936d3dc5e24301e0620da265df50fea)

Signed-off-by: Vincent Génieux <vincent2014@startigen.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel.bbclass

index 70ed95bbe099c00c61c7a28d18b75338b9cd7871..2a6ec34c360761f623959d6a5396ea0cde7053e3 100644 (file)
@@ -403,7 +403,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