Skip to content
Snippets Groups Projects
Commit 4cfeb8df authored by Sébastien Szymanski's avatar Sébastien Szymanski Committed by Stefano Babic
Browse files

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: default avatarSébastien Szymanski <sebastien.szymanski@armadeus.com>
Reviewed-by: default avatarFrieder Schrempf <frieder.schrempf@kontron.de>
parent 3ce1ef5b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment