Would you mind formulating a patch?

It would be greatly appreciated.

Thanks!

2011/6/1 Tormod Volden <lists.tor...@gmail.com>:
> On Wed, Jun 1, 2011 at 7:22 AM, Øyvind Harboe wrote:
>> Merged very slightly different version that prints out error message
>> upon invalid argument.
>
> From the commit:
> +if [ $1 == nosubmodule ]; then
>
> Note that if $1 is empty, some (most) shells will see just [ ==
> nosubmodule ] and fail. So always quote variables that possibly can be
> empty, like [ "$1" = "nosubmodule" ]. I quoted also the string here,
> but just for consistency and good measures.
>
> Note also that == is a bashism. In sh scripts, use "=" for comparison.
>
> Tormod
>



-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27

http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to