Bug 62285 - Bug in update-index-monthly - exit in wrong place
Summary: Bug in update-index-monthly - exit in wrong place
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_mbox (show other bugs)
Version: 2.5-HEAD
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-11 20:23 UTC by Sebb
Modified: 2018-04-11 23:07 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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