move whole object

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-19 02:17:17 +01:00
parent 0d0e5b65d6
commit 5985fafe86

View file

@ -93,11 +93,8 @@ while [ "$__cdist_new_objects_created" = "y" ]; do
# Source of the new object # Source of the new object
__cdist_new_object_dir="${__cdist_new_objects_dir}/$__cdist_new_object" __cdist_new_object_dir="${__cdist_new_objects_dir}/$__cdist_new_object"
mkdir -p "$__cdist_object_dir" # Move object, not only parts
mv "${__cdist_new_object_dir}/" "$__cdist_object_dir"
# Move parameters and source information
mv "${__cdist_new_object_dir}/"* "$__cdist_object_dir"
mv "${__cdist_new_object_dir}/${__cdist_name_object_source}" "$__cdist_object_dir"
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...