Use hidden directory for deletion
This commit is contained in:
parent
bfb3c6338c
commit
702cdf931e
1 changed files with 1 additions and 1 deletions
2
ccollect
2
ccollect
|
@ -162,7 +162,7 @@ delete_from_file()
|
|||
[ $# -eq 1 ] && suffix="$1" && shift
|
||||
# dirs for deletion will be moved to this trash dir inside destination dir
|
||||
# - for fast mv operation
|
||||
trash="$(mktemp -d "trash.XXXXXX")"
|
||||
trash="$(mktemp -d ".trash.XXXXXX")"
|
||||
while read to_remove; do
|
||||
mv "${to_remove}" "${trash}" ||
|
||||
_exit_err "Moving ${to_remove} to ${trash} failed."
|
||||
|
|
Loading…
Reference in a new issue