From patchwork Fri Nov 9 13:30:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Husemann X-Patchwork-Id: 995527 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=NetBSD.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42s1HW2zT8z9sCs for ; Sat, 10 Nov 2018 00:30:27 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id EF638C22577; Fri, 9 Nov 2018 13:30:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A89A1C220D4; Fri, 9 Nov 2018 13:30:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2D9C5C220D4; Fri, 9 Nov 2018 13:30:16 +0000 (UTC) Received: from mail.duskware.de (mail.duskware.de [91.199.88.144]) by lists.denx.de (Postfix) with ESMTPS id D7503C2209D for ; Fri, 9 Nov 2018 13:30:15 +0000 (UTC) Received: by mail.duskware.de (Postfix, from userid 205) id 6DF84A7FFD; Fri, 9 Nov 2018 14:30:14 +0100 (CET) Date: Fri, 9 Nov 2018 14:30:14 +0100 From: Martin Husemann To: u-boot@lists.denx.de Message-ID: <20181109133014.GB21976@mail.duskware.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) Subject: [U-Boot] [PATCH] tools: improve portability of imx_cntr_image.sh X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imx_cntr_image.sh b/tools/imx_cntr_image.sh index 4c629e8694..972b95ccbe 100755 --- a/tools/imx_cntr_image.sh +++ b/tools/imx_cntr_image.sh @@ -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