[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:59:53 PDT 2013


On 25 April 2013 13:51, Seth Bollinger <seth.boll at gmail.com> wrote:
> On Thu, Apr 25, 2013 at 7:38 AM, Paul Barker <paul at paulbarker.me.uk> wrote:
>>
>> '[[' should be a bash builtin. What host OS are you using for the build?
>
> I'm using debian.  I'll check what the default shell is.  You're right, it's
> probably dash.
>

Try 'sudo dpkg-reconfigure dash'.

> However, should this fail silently then?  In this instance I only saw the
> error with debug enabled.  Otherwise it silently tried to dd a compressed
> image to the sd card.  Of course this didn't run.  :)
>

I assume that 'if' tries to run the command, gets a non-zero return
value as the command doesn't run and just interprets this as the
command running but returning non-zero.

--
Paul Barker

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



More information about the yocto mailing list