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
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to