On Wed, Oct 26, 2016 at 11:05:32AM -0600, Stephen Warren wrote: > From: Stephen Warren <swar...@nvidia.com> > > The phrase "if [ $? -ne 0 ]; then exit $?; fi" doesn't work correctly; > by the time the "exit" statement runs, $? has already been over-written > by the result of the [ command. Fix this by explicitly storing $? and > then using that stored value in both the test and the error-case exit > statement. > > This change also converts from textual comparison to integer comparison, > since the exit code is an integer and there's no need to convert it to > a string for comparison. > > Signed-off-by: Stephen Warren <swar...@nvidia.com> > Reviewed-by: Heiko Schocher <h...@denx.de>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot