Re: [U-Boot] Portability of sh scripts

2018-11-09 Thread Tom Rini
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) impmlement

[U-Boot] Portability of sh scripts

2018-11-09 Thread Martin Husemann
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