Bah, don't shift the args inside the loop!
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Jun 2009 17:16:30 +0000 (17:16 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Jun 2009 17:16:30 +0000 (17:16 +0000)
Thanks to berick for reporting the problem

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13307 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/autogen.sh

index 9e0728b..3dbac70 100755 (executable)
@@ -67,8 +67,8 @@ while getopts  "c:u h" flag; do
                "u")            PROXIMITY="REFRESH";;
                "h")            usage && exit;;
        esac;
-       shift $((OPTIND - 1))
 done
+shift $((OPTIND - 1))
 
 if [ -z "$CONFIG" ] && [[ ! -z "${1:-}" ]]; then
        # Support "autogen.sh /path/to/opensrf_core.xml" for legacy invocation