forked from ungleich-public/cdist
reload binaries on manifest run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
3156ef171e
commit
929d33c310
1 changed files with 5 additions and 2 deletions
|
@ -28,11 +28,14 @@ if [ $# -ne 2 ]; then
|
||||||
__cdist_usage "<outdir> <manifest>"
|
__cdist_usage "<outdir> <manifest>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -au
|
set -aeu
|
||||||
|
|
||||||
__cdist_output_dir="$1"; shift
|
__cdist_output_dir="$1"; shift
|
||||||
__cdist_manifest="$1"; shift
|
__cdist_manifest="$1"; shift
|
||||||
|
|
||||||
|
# Ensure binaries exist and are up-to-date
|
||||||
|
cdist-build-bin
|
||||||
|
|
||||||
# prepend our path, so all cdist tools come before other tools
|
# prepend our path, so all cdist tools come before other tools
|
||||||
PATH="${__cdist_cache_bin}:$PATH"
|
PATH="${__cdist_cache_bin}:$PATH"
|
||||||
|
|
||||||
|
@ -42,4 +45,4 @@ if [ ! -x "${__cdist_manifest_init}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${__cdist_output_dir}"
|
mkdir -p "${__cdist_output_dir}"
|
||||||
"${__cdist_manifest_init}"
|
"${__cdist_manifest}"
|
||||||
|
|
Loading…
Reference in a new issue