Create destination on real path

This commit is contained in:
Nico Schottelius 2007-08-17 15:45:21 +02:00
parent 8490b77acf
commit e71146dbbf
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,6 @@
0.6 to 0.6.1:
* Added check for destination_base in add_ccollect_source.sh
0.5.2 to 0.6:
* Always print return code of rsync
* Add much more timing information

View file

@ -89,8 +89,13 @@ while [ $# -gt 0 ]; do
echo "${source_source}" > "${fullname}/source"
# create destination directory
dest="${destination_base}/${source}"
_echo "Creating destination ${dest} ..."
_echo "Creating destination ..."
absbase=$(cd "${destination_base}" 2>/dev/null && pwd -P) || \
_exit_err "${destination_base} should exist before creating sources."
dest="${absbase}/${source}"
_echo "Creating ${dest} ..."
mkdir -p "${dest}" || _exit_err "${dest}: Cannot create."
# link destination directory