forked from ungleich-public/cdist
include move of requirements and make move a loop
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
0d39da6a2b
commit
0f2eeda838
1 changed files with 12 additions and 11 deletions
|
@ -98,17 +98,18 @@ while [ "$__cdist_new_objects_created" = "y" ]; do
|
||||||
mv "${__cdist_new_object_dir}/${__cdist_name_object_source}" \
|
mv "${__cdist_new_object_dir}/${__cdist_name_object_source}" \
|
||||||
"$__cdist_object_dir"
|
"$__cdist_object_dir"
|
||||||
|
|
||||||
# Parameter
|
# Explorer, Parameter, Require
|
||||||
if [ -d "${__cdist_new_object_dir}/${__cdist_name_parameter}" ]; then
|
for __cdist_object_file in \
|
||||||
mv "${__cdist_new_object_dir}/${__cdist_name_parameter}" \
|
${__cdist_name_explorer} \
|
||||||
"$__cdist_object_dir"
|
${__cdist_name_parameter} \
|
||||||
fi
|
${__cdist_name_require} \
|
||||||
|
; do
|
||||||
# Explorer
|
|
||||||
if [ -d "${__cdist_new_object_dir}/${__cdist_name_explorer}" ]; then
|
if [ -e "${__cdist_new_object_dir}/${__cdist_name_parameter}" ]; then
|
||||||
mv "${__cdist_new_object_dir}/${__cdist_name_explorer}" \
|
mv "${__cdist_new_object_dir}/${__cdist_object_file}" \
|
||||||
"$__cdist_object_dir"
|
"$__cdist_object_dir"
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
done < "$__cdist_new_objects_list"
|
done < "$__cdist_new_objects_list"
|
||||||
|
|
||||||
# Remove listing and objects, otherwise the next type will reuse it...
|
# Remove listing and objects, otherwise the next type will reuse it...
|
||||||
|
|
Loading…
Reference in a new issue