From 57b73e88fd7bfa29048022941bcfb4ea715c1786 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Fri, 21 Feb 2014 21:14:39 -0300 Subject: [PATCH] Add support to debug --- README.md | 7 +++++++ lib/kickstart-deploy | 3 ++- lib/kickstart-local | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 240eb21..bd26820 100644 --- a/README.md +++ b/README.md @@ -137,5 +137,12 @@ Enable autocompletion on your terminal eval "$(kickstart autocomplete)" ``` +### Debbuging +Prepend DEBUG=1 to the command and you will see massive ammount of commands on your screen + +```bash +DEBUG=1 kickstart local nodejs +``` + ### Thanks This project was inspired on [sunzi](https://github.com/kenn/sunzi) diff --git a/lib/kickstart-deploy b/lib/kickstart-deploy index 2e8aee1..004c65f 100755 --- a/lib/kickstart-deploy +++ b/lib/kickstart-deploy @@ -7,6 +7,7 @@ target=$1 shift [[ "$1" == "--sudo" ]] && prefix="sudo " && shift +[ "$DEBUG" ] && debug="-x" remote_command=$( cat <