X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvdispatch-conf;h=3f21940587889702630387dbd810d7befe53511b;hb=e5d96f93d0de60ca5fe2f30c09aef449e39e3e89;hp=c767cd8020e0b5356a9f88b5835e04e47915e20d;hpb=3597c75084e7f41d64bc251e20ef5d33bb09ea06;p=util-vserver.git diff --git a/scripts/vdispatch-conf b/scripts/vdispatch-conf index c767cd8..3f21940 100755 --- a/scripts/vdispatch-conf +++ b/scripts/vdispatch-conf @@ -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[@]}" -- "$@"