OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62285] New: Bug in update-index-monthly - exit in wrong place


https://bz.apache.org/bugzilla/show_bug.cgi?id=62285

            Bug ID: 62285
           Summary: Bug in update-index-monthly - exit in wrong place
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mbox
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: sebb@xxxxxxxxxx
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx