From f0e491d5a987d43b87f40a4a7fd019074468876c Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Sun, 31 Dec 2017 09:58:05 +0100 Subject: Add feature to block loop used for playbook and yaml debuging purposes --- replay | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/replay b/replay index 3bc4b5d..617c054 100755 --- a/replay +++ b/replay @@ -22,8 +22,29 @@ ERROR="\e[0m[ \e[91mERROR\e[0m ]" INFO="\e[0m[ \e[93mINFO\e[0m ]" +### +# User command-line options +### +while [[ $# -gt 0 ]] +do + case "$1" in + -d|--debug) + COUNTLIMIT=1 + shift + ;; + *) + echo "Usage: $0 [-d|--debug]" + exit 3 + ;; + esac +done +### +# End +### + + REPLAY=true -COUNT=1 +COUNT=0 pushd $WORKDIR >/dev/null -- cgit