fixed endless loop when no '--' is given
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 21 Feb 2008 23:10:34 +0000 (23:10 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 21 Feb 2008 23:10:34 +0000 (23:10 +0000)
fixed --help/--version handling

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2682 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vmount

index f0a63d5..f779374 100755 (executable)
@@ -53,9 +53,10 @@ the GNU General Public License.  This program has absolutely no warranty."
 
 
 declare -a guests
-while true; do
+while test $# -gt 0; do
     case "$1" in
        (--)    shift; break;;
+        (-*)    break;
        (*)
            _setVserverDir "$1"
            guests=( "${guests[@]}" "$VSERVER_DIR" )