]> 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>
Fri, 23 Jan 2015 11:35:27 +0000 (11:35 +0000)
Remove bash specific syntax '[[ test ]]' replaced with '[ test ]'.

Fixes [YOCTO #7112]

Signed-off-by: Vincent Génieux <vincent2014@startigen.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index 805f7992e0227346a536723684ac0dddd969ae0b..183769316b6479c08875284d5abc58c9fd9938a5 100644 (file)
@@ -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