shrink cdist-remote-code-run-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
42af407d3e
commit
7336499995
3 changed files with 2 additions and 12 deletions
|
|
@ -31,13 +31,5 @@ __cdist_out_object_dir="$1"; shift
|
|||
__cdist_object_list "$__cdist_out_object_dir" > "$__cdist_tmp_file"
|
||||
|
||||
while read object; do
|
||||
code="$(__cdist_object_code "$object")"
|
||||
require="$(__cdist_object_require "$object")"
|
||||
|
||||
# Object code depends on others, execute them before us
|
||||
if [ -f "$require" ]; then
|
||||
while read requirement; do
|
||||
cdist-remote-code-run "$code"
|
||||
done < "$require"
|
||||
fi
|
||||
cdist-remote-code-run "$__cdist_out_object_dir" "$object"
|
||||
done < "$__cdist_tmp_file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue