From e5758e56547ab3d2b741aa13f814cd7446c5a38e Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sun, 23 Jan 2022 15:52:30 +1100 Subject: [PATCH] Typo fix and a couple of extra debug logs --- bare.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bare.sh b/bare.sh index 847d592..9e2de63 100755 --- a/bare.sh +++ b/bare.sh @@ -150,7 +150,7 @@ function usage() { echo " -x num Use 'num' simultaneous connections (default: 20)" echo " -c Cron mode - log to ${LOGFILE}" echo " -t Test mode - dump what would be done then exit." - echo " -T Telegram fornatting mode" + echo " -T Telegram formatting mode" echo "" echo "Valid commands are:" echo " $VALIDCOMMANDS" @@ -815,6 +815,9 @@ if [[ -z $REPO_LIST ]]; then exit 1 fi +[[ $VERBOSE -eq 1 ]] && log "Processing these repos: $REPO_LIST" + + if [[ $TESTMODE -eq 1 ]]; then action "Would have run '$CMD' on these repos:" for f in $REPO_LIST; do @@ -831,6 +834,7 @@ errcount=0 # used for 'check' mode warncount=0 # used for 'check' mode errtext="" for f in $REPO_LIST; do + [[ $VERBOSE -eq 1 ]] && log "debug: starting repo $f" REPO=${f} DATAPATH=$(getdatapath $REPO) FULLLOGFILE="${FULLLOGFILE_BASE}_${REPO}.txt"