From: Enrico Scholz Date: Thu, 21 Feb 2008 23:10:34 +0000 (+0000) Subject: fixed endless loop when no '--' is given X-Git-Tag: release-0.30.215~25 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45a695dd9f73bcc485f09adf5118e67a43dcdf8;p=util-vserver.git fixed endless loop when no '--' is given fixed --help/--version handling git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2682 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vmount b/scripts/vmount index f0a63d5..f779374 100755 --- a/scripts/vmount +++ b/scripts/vmount @@ -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" )