support manifest args in cdist-manifest-run

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-22 11:47:43 +01:00
parent 5dcb719844
commit 8c5a64cd92

View file

@ -23,7 +23,7 @@
#
. cdist-config
[ $# -eq 3 ] || __cdist_usage "<target host> <manifest> <outdir>"
[ $# -ge 3 ] || __cdist_usage "<target host> <manifest> <outdir> [manifest arguments]"
set -u
export __cdist_target_host="$1"; shift
@ -43,4 +43,4 @@ fi
mkdir -p "${__cdist_output_dir}" || __cdist_exit_err "Cannot create output dir ${__cdist_output_dir}"
__cdist_exec_fail_on_error "${__cdist_manifest}"
__cdist_exec_fail_on_error "${__cdist_manifest}" "$@"