warn about missing manifest (i.e. abort)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-18 02:43:25 +01:00
parent 0312bf1b4b
commit 581b29ca97
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ cdist-type-build-emulation "${__cdist_out_type_bin_dir}" \
export PATH="${__cdist_out_type_bin_dir}:$PATH"
# Force -x, so the user is aware the file is executed
[ -f "${__cdist_manifest}" ] \
|| __cdist_exit_err "Missing manifest ${__cdist_manifest}"
[ -x "${__cdist_manifest}" ] \
|| __cdist_exit_err "${__cdist_manifest} needs to be executable."
mkdir -p "${__cdist_output_dir}" \