forked from ungleich-public/cdist
make cdist-manifest-run change the working dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
5a7ffff077
commit
57c60a40a8
3 changed files with 10 additions and 11 deletions
|
|
@ -65,12 +65,8 @@ while [ "$__cdist_new_objects_created" = "y" ]; do
|
|||
if [ -x "${__cdist_manifest}" ]; then
|
||||
echo "Executing manifest ${__cdist_manifest} ..."
|
||||
|
||||
# Safely change directory, convienent for type-writers
|
||||
(
|
||||
cd "$__cdist_cur_object_dir"
|
||||
cdist-manifest-run "$__cdist_target_host" "$__cdist_manifest" \
|
||||
"$__cdist_new_objects_dir" "$__cdist_object_id"
|
||||
)
|
||||
cdist-manifest-run "$__cdist_target_host" "$__cdist_cur_object_dir" \
|
||||
"$__cdist_manifest" "$__cdist_new_objects_dir" "$__cdist_object_id"
|
||||
|
||||
__cdist_object_list "${__cdist_new_objects_dir}" > "$__cdist_new_objects_list"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue