Use destination dir basename
This commit is contained in:
parent
c39205d308
commit
7701bdb0a8
1 changed files with 2 additions and 1 deletions
3
ccollect
3
ccollect
|
@ -756,7 +756,8 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
# Exclude destination_dir from listing, it can be touched reused and renamed
|
# Exclude destination_dir from listing, it can be touched reused and renamed
|
||||||
# oldest existing destination directory.
|
# oldest existing destination directory.
|
||||||
#
|
#
|
||||||
last_dir="$(ls -${TSORT}p1 | grep '/$' | grep -v "${destination_dir}" | head -n 1)" || \
|
dest_dir_name=$(basename "${destination_dir}")
|
||||||
|
last_dir="$(ls -${TSORT}p1 | grep '/$' | grep -v "${dest_dir_name}" | head -n 1)" || \
|
||||||
_exit_err "Failed to list contents of ${ddir}."
|
_exit_err "Failed to list contents of ${ddir}."
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue