Bug 62285

Summary: Bug in update-index-monthly - exit in wrong place
Product: Apache httpd-2 Reporter: Sebb <sebb>
Component: mod_mboxAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.1   

Description Sebb 2018-04-11 20:23:38 UTC
The script
https://svn.apache.org/repos/asf/httpd/mod_mbox/trunk/scripts/update-index-monthly

has the following code:

--- cut ---
if [ $# -ge 1 ]; then
  ARCHIVES_PATH="$1"
  exit 1
fi

if [ ! -f $ARCHIVES_PATH ] ; then
  echo $ARCHIVES_PATH not found.  Exiting.
fi
--- cut ---

The 'exit 1' statement should be in the second conditional block.
Comment 1 Rainer Jung 2018-04-11 23:07:21 UTC
Thanks for the detailed report.

Fixed in mod_mbox trunk in r1828940.

Other scripts in this directory seem to have their "exit 1" in the correct places.

Regards,

Rainer