Commit ca6d06c2 authored by Darko Poljak's avatar Darko Poljak

Add more verbose logging

parent 1628ce58
......@@ -177,11 +177,12 @@ delete_from_file()
_techo "Removing $@ in ${trash}..."
mkdir "${empty_dir}" || _exit_err "Empty directory ${empty_dir} cannot be created."
[ "${VVERBOSE}" ] && echo "rsync -a --delete ${empty_dir} ${trash}"
[ "${VVERBOSE}" ] && echo "Starting: rsync -a --delete ${empty_dir} ${trash}"
# rsync needs ending slash for directory content
rsync -a --delete "${empty_dir}/" "${trash}/" || _exit_err "Removing $@ failed."
rmdir "${trash}" || _exit_err "Removing ${trash} directory failed"
rmdir "${empty_dir}" || _exit_err "Removing ${empty_dir} directory failed"
[ "${VVERBOSE}" ] && echo "Finished: rsync -a --delete ${empty_dir} ${trash}"
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