Commit 51dcf4a0 authored by Darko Poljak's avatar Darko Poljak

Use hidden empty directory for deletion

parent 702cdf93
......@@ -175,7 +175,7 @@ delete_from_file()
fi
done < "${file}"
_techo "Removing $@ in ${trash}..."
empty_dir="empty-dir"
empty_dir=".empty-dir"
mkdir "${empty_dir}" || _exit_err "Empty directory ${empty_dir} cannot be created."
[ "${VVERBOSE}" ] && echo "Starting: rsync -a --delete ${empty_dir} ${trash}"
# rsync needs ending slash for directory content
......
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