From 2c172ab2489162b77d7e2f60642ae8b42db3e761 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 20 Mar 2016 17:18:25 -0400 Subject: [PATCH] copy_buildsync.sh: add command line options for verbose/debug mode This makes it easier to do some debugging on the fly w/out having to edit the script directly. --- scripts/copy_buildsync.sh | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh index a9c18a0d..b2e5f8a3 100755 --- a/scripts/copy_buildsync.sh +++ b/scripts/copy_buildsync.sh @@ -17,8 +17,6 @@ RSYNC_OPTS=( -aO --delay-updates ) -DEBUG= -VERBOSE= EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]" OUT_STAGE3="latest-stage3.txt" @@ -29,21 +27,20 @@ OUT_ISO="latest-iso.txt" DEBUGP= VERBOSEP= -[ -n "$DEBUG" ] && DEBUGP=echo -[ -n "$DEBUG" ] && RSYNC_OPTS+=( -n ) -[ -n "$VERBOSE" ] && RSYNC_OPTS+=( -v ) -[ -n "$VERBOSEP" ] && VERBOSEP="-v" - usage() { cat <