From f45a695dd9f73bcc485f09adf5118e67a43dcdf8 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 21 Feb 2008 23:10:34 +0000 Subject: [PATCH] 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 --- scripts/vmount | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ) -- 1.8.1.5