begin merge section in cdist-type-emulator
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
34b5e44091
commit
2ef17f9bf2
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue