[U-Boot] Portability of sh scripts

Tom Rini trini at konsulko.com
Fri Nov 9 12:11:15 UTC 2018


On Fri, Nov 09, 2018 at 01:08:42PM +0100, Martin Husemann wrote:

> Hey folks,
> 
> I noticed that tools/imx_cntr_image.sh contains non-portable code:
> 
> 	if [ $f == "u-boot-dtb.bin" ]; then
> 
> This is a "bash-ism", the operator "==" is not implemented by most test(1)
> or sh(1) impmlementations. Simply replacing it with "=" fixes this.
> 
> Should I send a trivial patch or do you just fix it?

Please send a patch, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181109/7a981e59/attachment.sig>


More information about the U-Boot mailing list