From a0f9cfd95e54a153172842890c58f17d4214ef2e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Dec 2005 16:14:46 +0100 Subject: [PATCH] Added verbosity --- ccollect.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index 597508a..af39e8c 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -42,6 +42,7 @@ usage() echo " -h, --help: Show this help screen" echo " -p, --parallel: Parellize backup process" echo " -a, --all: Backup all sources specified in $CSOURCES" + echo " -v, --verbose: Be very verbose." echo "" echo " Retrieve latest ccollect at http://linux.schottelius.org/ccollect/." echo "" @@ -83,6 +84,9 @@ while [ $i -le $# ]; do -a|--all) ALL=1 ;; + -v|--verbose) + VERBOSE=1 + ;; -p|--parallel) PARALLEL=1 ;; @@ -102,6 +106,12 @@ while [ $i -le $# ]; do i=$[$i+1] done +# +# be really really really verbose +# +if [ "$VERBOSE" = 1 ]; then + set -x +fi # # Look, if we should take ALL sources