Details
Description
In bin/crawl for every Nutch command the exit value is checked explicitly:
"$bin/nutch" ... RETCODE=$? if [ $RETCODE -ne 0 ] then exit $RETCODE fi
This could be simplified by calling bin/nutch from one function which does the check. The function could also echo the command, show an error message, etc. The main advantage is short and clear code. In case a special treatment of exit values is required (cf. NUTCH-1829) we still could call bin/nutch directly.