Add support to debug
This commit is contained in:
parent
c908d00703
commit
57b73e88fd
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user