forked from ungleich-public/cdist
always prepend header in gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
68b6f46a91
commit
1f5fee5bad
1 changed files with 3 additions and 7 deletions
|
@ -44,15 +44,11 @@ gencode="$(__cdist_type_gencode "$__cdist_type")"
|
|||
|
||||
cd "$__cdist_object_dir"
|
||||
|
||||
# Call gencode of type with __cdist_object
|
||||
if [ -x "$gencode" ]; then
|
||||
# Prepend header to each script
|
||||
cat << eof
|
||||
#
|
||||
# Code imported from $gencode
|
||||
# The following code is imported from output of $gencode
|
||||
#
|
||||
|
||||
eof
|
||||
|
||||
__cdist_exec_fail_on_error "$gencode" "$__cdist_object_id"
|
||||
fi
|
||||
[ -x "$gencode" ] || __cdist_exec_fail_on_error "$gencode" "$__cdist_object_id"
|
||||
|
|
Loading…
Reference in a new issue