Use hidden directory for deletion

This commit is contained in:
Darko Poljak 2019-10-17 06:52:51 +02:00
parent bfb3c6338c
commit 702cdf931e
1 changed files with 1 additions and 1 deletions

View File

@ -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."