Ticket #2575 (closed bug: fixed)
shell script gotcha in boot
Description
I use a build process which is sensitive to the exit code of "boot", assuming that everything went OK only if it returns 0. Because the last line of the script uses the && operator, the entire script can exit with a code other than zero if the last file checked does not exist. In my case, "validate" indeed did not exist, and the script failed.
Solution: Replace the && with an if statement:
if test -f $f; then
chmod +x $f
fi
Change History
Note: See
TracTickets for help on using
tickets.
