X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvdispatch-conf;h=0452daeb5bdc60cacb287193827a6917877a85d0;hb=b7785f953cf988346d0f36c5852af39db3d1b00c;hp=54e4bd4e78971b139ce3ab7528c836a07d42cf70;hpb=19ef6bad17e92a9cedb7db8eddee2bebf1aa7c4d;p=util-vserver.git diff --git a/scripts/vdispatch-conf b/scripts/vdispatch-conf index 54e4bd4..0452dae 100755 --- a/scripts/vdispatch-conf +++ b/scripts/vdispatch-conf @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: vdispatch-conf 2486 2007-02-05 18:08:17Z hollow $ +# $Id: vdispatch-conf 2635 2007-11-17 23:52:59Z hollow $ # Copyright (C) 2006 Benedikt Boehm # @@ -58,15 +58,24 @@ while true; do (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;; (--quiet|-q) send_through=( "${send_through[@]}" "$1" );; (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );; - (--) shift; break;; + (--) test ${#vsomething_opts[@]} -eq 0 && shift; break;; (*) echo $"vdispatch-conf: internal error; arg=='$1'" >&2; exit 1;; esac shift done -VSOMETHING_TITLE=vemerge +declare -a vserver_names + +while [ $# -gt 0 ]; do + case "$1" in + (--) shift; break;; + (*) vserver_names=( "${vserver_names[@]}" "$1" );; + esac + shift +done + +VSOMETHING_TITLE=vdispatch-conf VSOMETHING_PKGMGMT=1 export VSOMETHING_TITLE VSOMETHING_PKGMGMT - -exec $_VSOMETHING "${send_through[@]}" dispatch-conf "${vsomething_opts[@]}" "$@" +exec $_VSOMETHING "${send_through[@]}" dispatch-conf "${vsomething_opts[@]}" "${vserver_names[@]}" -- "$@"