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.
This commit is contained in:
parent
192b55b98d
commit
a4c61e7b68
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue