mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 04:14:34 +00:00
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>
This commit is contained in:
parent
3ce1ef5b8f
commit
4cfeb8df31
1 changed files with 2 additions and 4 deletions
|
@ -14,10 +14,8 @@ for f in $blobs; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $f ]; then
|
if [ ! -f $f ]; then
|
||||||
continue
|
echo "WARNING '$f' not found, resulting binary is not-functional" >&2
|
||||||
else
|
|
||||||
echo "WARNING '$tmp' not found, resulting binary is not-functional" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue