Add support to debug

This commit is contained in:
Bruno Tavares 2014-02-21 21:14:39 -03:00
parent c908d00703
commit 57b73e88fd
3 changed files with 11 additions and 2 deletions

View File

@ -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)

View File

@ -7,6 +7,7 @@ target=$1
shift
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
[ "$DEBUG" ] && debug="-x"
remote_command=$(
cat <<CMD
@ -14,7 +15,7 @@ cat <<CMD
mkdir ~/kickstart
cd ~/kickstart
tar xz
$prefix bash install.sh
$prefix bash $debug install.sh
CMD
)

View File

@ -1,9 +1,10 @@
#!/bin/bash -e
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
[ "$DEBUG" ] && debug="-x"
kickstart compile $@
(
cd compile
$prefix bash install.sh
$prefix bash $debug install.sh
)