|
|
|
@ -149,14 +149,18 @@ exit 1 |
|
|
|
|
################################################################################ |
|
|
|
|
# Merge object |
|
|
|
|
# |
|
|
|
|
# Save original destination |
|
|
|
|
__cdist_out_object_dir="$__cdist_out_object_dir_orig" |
|
|
|
|
|
|
|
|
|
__cdist_object_destination_dir="$(__cdist_object_dir "$__cdist_object_self")" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# Ensure that only optional or required parameters are given |
|
|
|
|
# If the object already exists and is exactly the same, merge it. Otherwise fail. |
|
|
|
|
# |
|
|
|
|
if [ -e "${__cdist_new_object_dir}" ]; then |
|
|
|
|
source="$(__cdist_object_source "${__cdist_new_object_dir}")" |
|
|
|
|
__cdist_exit_err "${__cdist_object} already exists (source: $source)" |
|
|
|
|
|
|
|
|
|
# old stuff |
|
|
|
|
# if [ -e "${__cdist_new_object_dir}" ]; then |
|
|
|
|
# source="$(__cdist_object_source "${__cdist_new_object_dir}")" |
|
|
|
|
# __cdist_exit_err "${__cdist_object} already exists (source: $source)" |
|
|
|
|
# fi |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|