check for correct entry on move, not parameter ;-)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-21 08:46:54 +01:00
parent 0f2eeda838
commit 6f02112aeb

View file

@ -105,7 +105,7 @@ while [ "$__cdist_new_objects_created" = "y" ]; do
${__cdist_name_require} \ ${__cdist_name_require} \
; do ; do
if [ -e "${__cdist_new_object_dir}/${__cdist_name_parameter}" ]; then if [ -e "${__cdist_new_object_dir}/${__cdist_object_file}" ]; then
mv "${__cdist_new_object_dir}/${__cdist_object_file}" \ mv "${__cdist_new_object_dir}/${__cdist_object_file}" \
"$__cdist_object_dir" "$__cdist_object_dir"
fi fi