X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvupdateworld;h=ebc5edf02b981e0254a1e7a336b75781942d07e1;hb=54edc50b584ade4f323c16bec6ef6320f129e531;hp=a69b693b6c15f6929f71d6edeeb46e01615eabb9;hpb=004894c3589aba3533f4c53b1650d9cc2c19ac69;p=util-vserver.git diff --git a/scripts/vupdateworld b/scripts/vupdateworld index a69b693..ebc5edf 100755 --- a/scripts/vupdateworld +++ b/scripts/vupdateworld @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty." exit 0 } -tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1 +tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1 eval set -- "$tmp" declare -a send_through vsomething_opts @@ -57,9 +57,8 @@ while true; do (--version) showVersion ;; (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;; (--quiet|-q) send_through=( "${send_through[@]}" "$1" );; - (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );; (--) test ${#vsomething_opts[@]} -eq 0 && shift; break;; - (*) echo $"vupdateworld: internal error; arg=='$1'" >&2; exit 1;; + (*) vsomething_opts=( "${vsomething_opts[@]}" "$1" );; esac shift done