From a4c61e7b6870b0f50a03d8f95298434f1fe8dcc1 Mon Sep 17 00:00:00 2001 From: jll2 Date: Mon, 15 Jun 2009 17:54:03 -0700 Subject: [PATCH] Bug fix for very_verbose: According to the documentation, "if [the very_verbose] file exists in the source specification -v will be passed to rsync, rm and mkdir." Previously, the -v option was passed only to rsync. This patch passes it to rm and mkdir as well. Actually, as per the behavior of the previous version, it is verbose that sends the -v option to rsync while very_verbose sends it the -vv option. I left it this way because this behavior seems reasonable. Maybe the documentation should be corrected on this point. --- ccollect.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index f158a19..3f2eda2 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -311,7 +311,6 @@ while [ "${i}" -lt "${no_sources}" ]; do # unset possible options # VERBOSE="" - VVERBOSE="" _techo "Beginning to backup" @@ -434,10 +433,12 @@ while [ "${i}" -lt "${no_sources}" ]; do fi # - # Verbosity for rsync + # Verbosity for rsync, rm, and mkdir # + VVERBOSE="" if [ -f "${c_very_verbose}" ]; then set -- "$@" "-vv" + VVERBOSE="-v" elif [ -f "${c_verbose}" ]; then set -- "$@" "-v" fi