Commit 702cdf93 authored by Darko Poljak's avatar Darko Poljak

Use hidden directory for deletion

parent bfb3c633
......@@ -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."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment