begin merge section in cdist-type-emulator

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.4
Nico Schottelius 14 years ago
parent 34b5e44091
commit 2ef17f9bf2
  1. 16
      bin/cdist-type-emulator

@ -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…
Cancel
Save