[yocto] [meta-raspberrypi][PATCH 1/2] sdcard_image-rpi.bbclass: Fix error in conditional test

Paul Barker paul at paulbarker.me.uk
Thu Apr 25 05:38:38 PDT 2013


On 25 April 2013 02:00, seth bollinger <seth.boll at gmail.com> wrote:
> When the shell tests for rootfs type I was seeing "[[: not found".  I
> use echo and egrep to test for the xz rootfs type to work around this
> error.
>

'[[' should be a bash builtin. What host OS are you using for the build?

Also what's the exact error message? I'm wondering if this is somehow
being ran in a shell that isn't bash. With an unknown command 'abcd',
bash gives me "abcd: command not found" and dash gives me "dash: 1:
abcd: not found".

Using egrep for a test like this seems less readable to me.

--
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list