remove redundant destination variable

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-01-15 02:24:21 +01:00
parent 758e5a9059
commit c7d35464ae

View file

@ -358,8 +358,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
fi fi
fi fi
destination="${ddir}"
# #
# Parameters: ccollect defaults, configuration options, user options # Parameters: ccollect defaults, configuration options, user options
# #
@ -473,7 +471,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
# #
export destination_name="${INTERVAL}.$(${CDATE}).$$-${source_no}" export destination_name="${INTERVAL}.$(${CDATE}).$$-${source_no}"
export destination_dir="${ddir}/${destination_name}" export destination_dir="${ddir}/${destination_name}"
export destination_full="${destination}/${destination_name}"
_techo "Creating directory ${destination_dir} ..." _techo "Creating directory ${destination_dir} ..."
[ "${VVERBOSE}" ] && echo "mkdir ${destination_dir}" [ "${VVERBOSE}" ] && echo "mkdir ${destination_dir}"
@ -489,7 +486,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
# the rsync part # the rsync part
# #
_techo "Transferring files..." _techo "Transferring files..."
rsync "$@" "${source}" "${destination_full}"; ret=$? rsync "$@" "${source}" "${destination_dir}"; ret=$?
_techo "Finished backup (rsync return code: $ret)." _techo "Finished backup (rsync return code: $ret)."
# #