tools: improve portability of imx_cntr_image.sh
authorMartin Husemann <martin@NetBSD.org>
Fri, 9 Nov 2018 13:30:14 +0000 (14:30 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
Replace non-portable operator == with =

The operator == in sh(1) / test(1) is non-POSIX and only implemented by
some shells (like bash). It is equivalent to the standard defined operator =.

tools/imx_cntr_image.sh

index 4c629e86946f1886cc4d174eb991fa04d5f722f7..972b95ccbeef9133492a78e6d2771e8a21ebcfcb 100755 (executable)
@@ -10,7 +10,7 @@ file=$1
 blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
 for f in $blobs; do
        tmp=$srctree/$f
-       if [ $f == "u-boot-dtb.bin" ]; then
+       if [ $f = "u-boot-dtb.bin" ]; then
                continue
        fi