diff options
author | Sébastien Szymanski | 2020-01-21 11:58:42 +0100 |
---|---|---|
committer | Stefano Babic | 2020-02-09 14:57:38 +0100 |
commit | 4cfeb8df31d40ff1120ea9932644ec91fb3af02b (patch) | |
tree | b89495d4f26fa4105157b958141b03a31d717822 | |
parent | 3ce1ef5b8f8903c8c72b772e8d6fd1db73941de7 (diff) |
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 <sebastien.szymanski@armadeus.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
-rwxr-xr-x | tools/imx8m_image.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh index 4959f9c8353..ba601044435 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 |