From: Sébastien Szymanski Date: Tue, 21 Jan 2020 10:58:42 +0000 (+0100) Subject: tools: imx8m_image: fix warning message X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=4cfeb8df31d40ff1120ea9932644ec91fb3af02b;p=u-boot.git tools: imx8m_image: fix warning message When a firmware file is missing the warning message doesn't indicate the firmware file name because '$tmp' var doesn't exist. Fix the warning message and while at it reduce the if/else statement. Signed-off-by: Sébastien Szymanski Reviewed-by: Frieder Schrempf --- diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh index 4959f9c835..ba60104443 100755 --- a/tools/imx8m_image.sh +++ b/tools/imx8m_image.sh @@ -14,10 +14,8 @@ for f in $blobs; do continue fi - if [ -f $f ]; then - continue - else - echo "WARNING '$tmp' not found, resulting binary is not-functional" >&2 + if [ ! -f $f ]; then + echo "WARNING '$f' not found, resulting binary is not-functional" >&2 exit 1 fi done