Fix the vps output when a guest fails to stops nicely.
[util-vserver.git] / scripts / vmount
index f0a63d5..1e40f85 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" )